pyjnius/tests/test_enum.py

17 lines
413 B
Python
Raw Normal View History

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)