aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qtcore/static_method_test.py
blob: 26955d9258f0c3c4bcc5e638eaa46166ed040206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()