Пример #1
0
 def test_union__with_identical_Rect(self):
     r1 = Rect(1, 2, 3, 4)
     self.assertEqual(r1, r1.union(Rect(r1)))
Пример #2
0
 def test_union(self):
     r1 = Rect(1, 1, 1, 2)
     r2 = Rect(-2, -2, 1, 2)
     self.assertEqual(Rect(-2, -2, 4, 5), r1.union(r2))