aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qtcore/static_method_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qtcore/static_method_test.py')
-rwxr-xr-xtests/qtcore/static_method_test.py18
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()
+