summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-07-11 18:57:14 -0300
committerRenato Filho <renato.filho@openbossa.org>2011-07-11 18:57:37 -0300
commitcc5431f108cdcd6d6dc549b3b35d4a45c9ffc837 (patch)
treeefabf574643760486363d1dbccef172f8a865db3
parent6138fb93d49460f19bbd0e8ce1293be5846c1ee4 (diff)
downloadpyside-cc5431f108cdcd6d6dc549b3b35d4a45c9ffc837.tar.gz
pyside-cc5431f108cdcd6d6dc549b3b35d4a45c9ffc837.tar.xz
pyside-cc5431f108cdcd6d6dc549b3b35d4a45c9ffc837.zip
Fixed enum test.
-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 0000000..6733f2f
--- /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()
+