aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qtgui/qtableview_test.py
blob: 0ea5cab8a6a0af8c6ef5b17cbee3f8afd0b794df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()