diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-04-15 16:49:31 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:15:21 -0300 |
commit | 4936232cec98614069cf72b55497c50b450a71e8 (patch) | |
tree | ffa5c781972486023745d18b439fa8ac3f0620d3 /tests/samplebinding | |
parent | e27fed1a8e7c173e0dc08e929671b9f289c3b4f1 (diff) |
Return false when a overload wasn't found on __eq__ and true when an overload wasn't found on __ne__.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/samplebinding')
-rw-r--r-- | tests/samplebinding/point_test.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/samplebinding/point_test.py b/tests/samplebinding/point_test.py index ae7cac0bb..3b45db4ad 100644 --- a/tests/samplebinding/point_test.py +++ b/tests/samplebinding/point_test.py @@ -54,6 +54,7 @@ class PointTest(unittest.TestCase): self.assertTrue(pt1 == pt1) self.assertTrue(pt1 == pt2) self.assertFalse(pt1 == pt3) + self.assertFalse(pt1 == object()) def testNotEqualOperator(self): '''Test Point class != operator.''' |