def test_specified(self): incoming = {'lat': '54.67', 'lon': '31.34'} self.assertEqual(transform_coords(incoming), { 'lat': 54.67, 'lon': 31.34 })
def test_none_in_coords(self): self.assertIsNone(transform_coords({'lat': None, 'lon': None}))
def test_none(self): self.assertIsNone(transform_coords(None))
def test_specified(self): incoming = {'lat': '54.67', 'lon': '31.34'} self.assertEqual(transform_coords(incoming), {'lat': 54.67, 'lon': 31.34})