Skip to content
Permalink
0f1adda2c0
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
16 lines (10 sloc) 421 Bytes
# pylint: disable=C0414,C0111,C0103,W0104
import unittest
from .location import LocationService
class LocationServiceTestCase(unittest.TestCase):
def setUp(self):
self.ls = LocationService()
def test_get_location_coords(self):
d = self.ls.get_location_coords("chipping norton")
self.assertEqual(round(d["latitude"], 1), 51.9)
self.assertEqual(round(d["longitude"], 1), -1.5)