def test_rectangle_same_rectangle(self):
     results = rectangle_intersections(9, 12, 6, 10, 9, 12, 6, 10)
     expected_results = [(9, 6), (12, 6), (9, 10), (12, 10)]
     self.assertCountEqual(
         results, expected_results,
         "\nrectangle_intersections Results: {}\nExpected Results: {}".format(results, expected_results)
     )
     print("{} success:\nResults: {} Expected Results: {}\n".format(self._testMethodName, results, expected_results))
 def test_rectangle_intersections_no_intersections(self):
     results = rectangle_intersections(3, 7, 4, 8, 9, 12, 6, 10)
     expected_results = 0
     self.assertEqual(
         results, expected_results,
         "\nrectangle_intersections Results: {}\nExpected Results: {}".format(results, expected_results)
     )
     print("{} success:\nResults: {} Expected Results: {}\n".format(self._testMethodName, results, expected_results))
 def test_rectangle_intersections_top_3_intersections(self):
     results = rectangle_intersections(6, 9, 6, 10, 6.5, 9, 7, 3)
     expected_results = [(6.5, 6), (9, 6), (9, 7)]
     self.assertCountEqual(
         results, expected_results,
         "\nrectangle_intersections Results: {}\nExpected Results: {}".format(results, expected_results)
     )
     print("{} success:\nResults: {} Expected Results: {}\n".format(self._testMethodName, results, expected_results))
 def test_rectangle_intersections_left_4_intersections(self):
     results = rectangle_intersections(6, 9, 6, 10, 7, 4, 6, 10)
     expected_results = [(6, 6), (6, 10), (7, 6), (7, 10)]
     self.assertCountEqual(
         results, expected_results,
         "\nrectangle_intersections Results: {}\nExpected Results: {}".format(results, expected_results)
     )
     print("{} success:\nResults: {} Expected Results: {}\n".format(self._testMethodName, results, expected_results))
 def test_rectangle_intersections_left(self):
     results = rectangle_intersections(4, 10, 3, 6, 8, 12, 4, 5)
     expected_results = [(10, 4), (10, 5)]
     self.assertCountEqual(
         results, expected_results,
         "\nrectangle_intersections Results: {}\nExpected Results: {}".format(results, expected_results)
     )
     print("{} success:\nResults: {} Expected Results: {}\n".format(self._testMethodName, results, expected_results))