Example #1
0
    def test_out(self):
        a = Rectangle(10, 10, 100, 100)
        b = Rectangle(20, 20, 400, 300)

        self.assertFalse(rectangle_in_rectangle(a, b))
Example #2
0
    def test_in(self):
        a = Rectangle(20, 20, 100, 100)
        b = Rectangle(10, 10, 400, 300)

        self.assertTrue(rectangle_in_rectangle(a, b))