def test_y_intercept_horizontal(self):
     """
     Tests computing x-intercept of a horizontal line
     """
     start = Point(-79.2, 40)
     end = Point(-86.2, 40)
     border = Border(start, end)
     self.assertTrue(math.isnan(border._get_x_intercept()), "Horizontal x-intercept calculation not working")
 def test_y_intercept_vertical(self):
     """
     Tests computing x-intercept of a vertical line
     """
     start = Point(-79.2, 40)
     end = Point(-79.2, 33)
     border = Border(start, end)
     self.assertEqual(-79.2, border._get_x_intercept(), "Vertical x-intercept calculation not working")
 def test_y_intercept_regular(self):
     """
     Tests computing x-intercept of a non vertical and non horizontal line
     """
     start = Point(-79.2, 40)
     end = Point(-86.2, 33)
     border = Border(start, end)
     self.assertEqual(119.2, border._get_x_intercept(), "Regular y-intercept calculation not working")