aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pysidetest
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-07-11 18:57:14 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:34 -0300
commitae0e33ff72bc8ff4394370edcbb6d608b01a5d7f (patch)
tree8b5e295c036c5d40840644dbd74ce2b36e3a1d06 /tests/pysidetest
parentc7385c45c4a7437fcd343bfb736b39c201bfdd6c (diff)
Fixed enum test.
Diffstat (limited to 'tests/pysidetest')
-rw-r--r--tests/pysidetest/enum_test.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/pysidetest/enum_test.py b/tests/pysidetest/enum_test.py
new file mode 100644
index 000000000..6733f2f5f
--- /dev/null
+++ b/tests/pysidetest/enum_test.py
@@ -0,0 +1,16 @@
+# -*- coding: utf-8 -*-
+
+import unittest
+from testbinding import Enum1, TestObjectWithoutNamespace
+
+class ListConnectionTest(unittest.TestCase):
+
+ def testEnumVisibility(self):
+ self.assertEqual(Enum1.Option1, 1)
+ self.assertEqual(Enum1.Option2, 2)
+ self.assertEqual(TestObjectWithoutNamespace.Enum2.Option3, 3)
+ self.assertEqual(TestObjectWithoutNamespace.Enum2.Option4, 4)
+
+if __name__ == '__main__':
+ unittest.main()
+