diff options
author | renatofilho <renato.filho@openbossa.org> | 2010-11-12 08:52:09 -0300 |
---|---|---|
committer | renatofilho <renato.filho@openbossa.org> | 2010-11-12 14:25:27 -0300 |
commit | 178f81aa70711876fe492431ae32afa3538cf460 (patch) | |
tree | 08da3637fb25f36969e8e61daaf1700dc611dea6 /tests | |
parent | 655219636b1500e82d543914045f4cc7ba7db95f (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')
-rw-r--r-- | tests/pysidetest/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/pysidetest/version_test.py | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/pysidetest/CMakeLists.txt b/tests/pysidetest/CMakeLists.txt index 176c8cd0e..d983ef8d0 100644 --- a/tests/pysidetest/CMakeLists.txt +++ b/tests/pysidetest/CMakeLists.txt @@ -63,4 +63,5 @@ add_dependencies(testbinding pyside QtCore libpyside pysidetest) PYSIDE_TEST(homonymoussignalandmethod_test.py) +PYSIDE_TEST(version_test.py) 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() + |