예제 #1
0
 def test_eq_false(self):
     p1 = Point(1, 2)
     p2 = Point(1, 1)
     self.assertFalse(p1.__eq__(p2))
     self.assertFalse(p1.__eq__((1, 2)))
예제 #2
0
 def test_eq_true(self):
     p1 = Point(1, 2)
     p2 = Point(1, 2)
     self.assertTrue(p1.__eq__(p2))