aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pysidetest/version_test.py
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-11-12 08:52:09 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-11-12 14:25:27 -0300
commit178f81aa70711876fe492431ae32afa3538cf460 (patch)
tree08da3637fb25f36969e8e61daaf1700dc611dea6 /tests/pysidetest/version_test.py
parent655219636b1500e82d543914045f4cc7ba7db95f (diff)
Added PySide attributes to specify current version, and Qt version.
Fixes bug: #454 Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/pysidetest/version_test.py')
-rw-r--r--tests/pysidetest/version_test.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/pysidetest/version_test.py b/tests/pysidetest/version_test.py
new file mode 100644
index 000000000..cb2b3996d
--- /dev/null
+++ b/tests/pysidetest/version_test.py
@@ -0,0 +1,17 @@
+#!/usr/bin/python
+
+import unittest
+from PySide import __version_info__, __version__, QtCore
+
+class CheckForVariablesTest(unittest.TestCase):
+ def testVesions(self):
+ self.assert_(__version_info__ >= (1, 0, 0))
+ self.assert_(__version_info__ < (99, 99, 99))
+ self.assert_(__version__)
+
+ self.assert_(QtCore.__version_info__ >= (4, 5, 0))
+ self.assert_(QtCore.__version__)
+
+if __name__ == '__main__':
+ unittest.main()
+