def test_lon_normalizer(self): a = 59.851252 b = 59.840427 c = 0 self.assertTrue(tr.lat_normalizer(a), 192.36932727272827) self.assertTrue(tr.lat_normalizer(b), 192.3201227272737) self.assertTrue(tr.lat_normalizer(c), -79.6818181818186) print "Test - OK ... Longitude normalization"
def test_lat_normalizer(self): a = 59.851252 b = 59.840427 c = 0 self.assertTrue(tr.lat_normalizer(a), 0.5089428571428637) self.assertTrue(tr.lat_normalizer(b), 0.4316214285714063) self.assertTrue(tr.lat_normalizer(c), -426.9999999999983) print "Test - OK ... Latitude normalization"