def test_intersect(self): a = Rect(-10, -10, 110, 110) b = Rect(0, 0, 100, 100) self.assertEqual(Rect(0, 0, 100, 100), a.intersect(b))