def test_overlapping_width(self):
        rect1 = (6, 6, 4, 5)
        rect2 = (3, 15, 15, 15)
        enclosed_rect = (3, 11, 15, 4)

        self.assertEqual(scanner.get_enclosed_rectangle(rect2, rect1),
                         enclosed_rect)

        self.assertEqual(scanner.get_enclosed_rectangle(rect2, rect1),
                         enclosed_rect)
    def test_different_widths(self):
        rect1 = (1, 6, 11, 5)
        rect2 = (3, 15, 15, 15)
        enclosed_rect = (1, 11, 17, 4)

        self.assertEqual(scanner.get_enclosed_rectangle(rect2, rect1),
                         enclosed_rect)