aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/qtableview_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui/qtableview_test.py')
-rw-r--r--tests/QtGui/qtableview_test.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/QtGui/qtableview_test.py b/tests/QtGui/qtableview_test.py
new file mode 100644
index 000000000..0ea5cab8a
--- /dev/null
+++ b/tests/QtGui/qtableview_test.py
@@ -0,0 +1,17 @@
+
+import unittest
+
+from PySide.QtCore import QAbstractTableModel
+from PySide.QtGui import QTableWidget
+from helper import UsesQApplication
+
+class QPenTest(UsesQApplication):
+
+ def testItemModel(self):
+ tv = QTableWidget()
+
+ self.assertEqual(type(tv.model()), QAbstractTableModel)
+
+if __name__ == '__main__':
+ unittest.main()
+