import unittest from jnius.reflect import autoclass class SimpleEnum(unittest.TestCase): def test_enum(self): SimpleEnum = autoclass('org.jnius.SimpleEnum') self.assertTrue(SimpleEnum) def test_value(self): SimpleEnum = autoclass('org.jnius.SimpleEnum') self.assertTrue(SimpleEnum.GOOD) self.assertTrue(SimpleEnum.BAD) self.assertTrue(SimpleEnum.UGLY)