def test_out(self): a = Rectangle(10, 10, 100, 100) b = Rectangle(20, 20, 400, 300) self.assertFalse(rectangle_in_rectangle(a, b))
def test_in(self): a = Rectangle(20, 20, 100, 100) b = Rectangle(10, 10, 400, 300) self.assertTrue(rectangle_in_rectangle(a, b))