summaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_243.py
blob: eb9f9d639938ed127c9120def603203f1e5eb9ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
''' Test bug 243: http://bugs.openbossa.org/show_bug.cgi?id=243'''

import unittest
import sys

from PySide.QtGui import QApplication, QMainWindow, QLayout

class QAppPresence(unittest.TestCase):

    def testBug(self):
        app = QApplication(sys.argv)
        window = QMainWindow()
        l = window.layout()
        self.assert_(isinstance(l, QLayout))

if __name__ == '__main__':
    unittest.main()