summaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_549.py
blob: 6d07899382501b3869b3861d4cb1d01babdf9654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import unittest

from PySide.QtGui import *

class TestBug549(unittest.TestCase):
    def testBug(self):
        app = QApplication([])
        w = QGraphicsWidget()
        w.setContentsMargins(1, 2, 3, 4)
        self.assertEquals(w.getContentsMargins(), (1, 2, 3, 4))
        w.setWindowFrameMargins(5, 6, 7, 8)
        self.assertEquals(w.getWindowFrameMargins(), (5, 6, 7, 8))

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