def test_getHaversineDistanceForLids(self): self.assertEqual( 553.86484760274641, getHaversineDistanceForLids( getLidFromLocation([25.562265, -80.595703]), getLidFromLocation([37.788081, -73.037109])))
def test_getLidFromLocation(self): self.assertEqual('38.930 -77.028', getLidFromLocation([38.929854, -77.027976]))
def test_getLidFromLocation(self): self.assertEqual('38.930 -77.028', getLidFromLocation([38.929854, -77.027976])) def test_getLocationFromLid(self): self.assertEqual([38.93, -77.028000000000006], getLocationFromLid('38.930 -77.028'))
def test_getHaversineDistanceForLids(self): self.assertEqual(553.86484760274641, getHaversineDistanceForLids(getLidFromLocation([25.562265, -80.595703]), getLidFromLocation([37.788081,-73.037109]))) def test_plotPointsOnUSMap(self):
def test_getHaversineDistanceForLids(self): self.assertEqual(553.86484760274641, getHaversineDistanceForLids(getLidFromLocation([25.562265, -80.595703]), getLidFromLocation([37.788081,-73.037109]))) # def test_plotPointsOnUSMap(self): # pointLabels = ['a', 'b', 'c'] # pointSize = [19.75, 100, 500] # pointColor = ['b', 'r', 'g'] # plotPointsOnUSMap([[40.809, -74.02], [40.809, -76.02], [44.809, -74.02]], pointLabels, pointSize, pointColor) # plt.show() if __name__ == '__main__':