aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-12-29 16:34:39 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:12:51 -0300
commit87ae5790fa75114dbf335380ca7ab644b013a50b (patch)
treec4b502dcf425cb832d8ba1c577d790a1ba28ce1a /tests/samplebinding
parent4a25e3a3801cebfb90cf89fd1eb1faf05c4725a1 (diff)
Add support to fix the bug#493 - "__eq__ and friends not implemented for QKeyEvent == QKeySequence"
Diffstat (limited to 'tests/samplebinding')
-rw-r--r--tests/samplebinding/objecttypeoperators_test.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/samplebinding/objecttypeoperators_test.py b/tests/samplebinding/objecttypeoperators_test.py
index d03c9bc48..148bc3591 100644
--- a/tests/samplebinding/objecttypeoperators_test.py
+++ b/tests/samplebinding/objecttypeoperators_test.py
@@ -39,5 +39,14 @@ class ObjectTypeOperatorsTest(unittest.TestCase):
self.assertEqual(None, a > b)
self.assertEqual(a.key(), "aoperator>")
+ def testPointerOpeators(self):
+ a = ObjectTypeOperators("a")
+ b = ObjectTypeOperators("b")
+ self.assertEqual(a + "bc", "abc")
+ self.assertEqual("bc" + a, "bca")
+ self.assertEqual("a", a)
+ self.assertEqual(a, "a")
+
+
if __name__ == '__main__':
unittest.main()