aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-05-20 14:40:52 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-05-20 15:02:35 -0300
commita98a0bf25a9ab0d2dd111ffbf1791339686de345 (patch)
tree7330def29de82d2c56faf6f43bb194ee2128dd64 /tests
parent5442c99d143fedb2fd7acd02e6e9d6195c16504d (diff)
QAbstractTableItemModel unittest.
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests')
-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 00000000..0ea5cab8
--- /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()
+