mirror of https://github.com/kivy/pyjnius.git
20 lines
522 B
Python
20 lines
522 B
Python
from __future__ import print_function
|
|
from __future__ import division
|
|
from __future__ import absolute_import
|
|
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)
|