diff options
Diffstat (limited to 'tests/qtcore/static_method_test.py')
-rwxr-xr-x | tests/qtcore/static_method_test.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/qtcore/static_method_test.py b/tests/qtcore/static_method_test.py new file mode 100755 index 000000000..26955d925 --- /dev/null +++ b/tests/qtcore/static_method_test.py @@ -0,0 +1,18 @@ +#!/usr/bin/python +'''Tests for static methos conflicts with class methods''' + +import unittest + +from PySide import QtCore + +class static_function_test(unittest.TestCase): + def testMemberQFileExists(self): + f = QtCore.QFile("/tmp/foo.txt") + self.assertEqual(f.exists(), False) + + def testStatocQFileExists(self): + self.assertEqual(QtCore.QFile.fileExists("/tmp/foo.txt"), False) + +if __name__ == '__main__': + unittest.main() + |