summaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_549.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui/bug_549.py')
-rw-r--r--tests/QtGui/bug_549.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/QtGui/bug_549.py b/tests/QtGui/bug_549.py
new file mode 100644
index 0000000..6d07899
--- /dev/null
+++ b/tests/QtGui/bug_549.py
@@ -0,0 +1,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()
+