- self.assertTrue(self.square1.__eq__(self.square1))
- self.assertFalse(self.square1.__eq__(self.square2))
+ self.assertTrue(self.square1 == self.square1)
+ self.assertFalse(self.square1 == self.square2)
- self.assertTrue(self.square4.__le__(self.square3))
- self.assertFalse(self.square3.__le__(self.square4))
+ self.assertTrue(self.square4 <= self.square3)
+ self.assertFalse(self.square3 <= self.square4)
def test_compliment(self):
self.assertEqual(~self.square1, self.compliment)
def test_compliment(self):
self.assertEqual(~self.square1, self.compliment)
self.assertEqual(Polyhedron(self.square1 + self.square2), self.sum2)
def test_difference(self):
self.assertEqual(Polyhedron(self.square1 + self.square2), self.sum2)
def test_difference(self):