QAbstractTableItemModel unittest.
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>,
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
5442c99d14
commit
a98a0bf25a
1 changed files with 17 additions and 0 deletions
17
tests/qtgui/qtableview_test.py
Normal file
17
tests/qtgui/qtableview_test.py
Normal file
|
|
@ -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()
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue