aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2010-02-08 17:08:08 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-02-09 19:23:19 -0200
commit7cc4ab54aaee271d8230eb16d42d99fd7201f2b3 (patch)
tree23630e16b2ab392fe2e406a2937ae21e7f5da8dd /tests
parent262c32e87b6d56159b5dd75403061d7c678f64b4 (diff)
Putting back QFileInfo(QFile) and setFile(QFile)
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/qtcore/qfileinfo_test.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/qtcore/qfileinfo_test.py b/tests/qtcore/qfileinfo_test.py
new file mode 100644
index 000000000..580b5a7d5
--- /dev/null
+++ b/tests/qtcore/qfileinfo_test.py
@@ -0,0 +1,17 @@
+
+import unittest
+
+import os
+import tempfile
+
+from PySide.QtCore import QFile, QFileInfo
+
+class QFileConstructor(unittest.TestCase):
+ '''QFileInfo constructor with qfile'''
+
+ def testBasic(self):
+ '''QFileInfo(QFile)'''
+ obj = QFileInfo(QFile())
+
+if __name__ == '__main__':
+ unittest.main()