from tests import JsonFixture
from src.models import Location

class TestLocation(JsonFixture):

    def test__dash_to_underscore(self):
        info = {


        }
@@ -56,16 +56,17 @@
 cation%0A%0A
+%0A
 class Te
@@ -108,59 +108,673 @@
 est_
-_dash_to_underscore(self):%0A        info = %7B%0A%0A%0A        %7D
+from_json(self):%0A        %22%22%22Assert that a Location instance can be deserialized from of JSON.%22%22%22%0A        location_instance = Location.from_json(self.json_fixture)%0A        self.assertTrue(isinstance(location_instance, Location))%0A        for attr in ('alerts', 'currently', 'daily', 'flags', 'hourly',%0A                     'latitude', 'longitude', 'minutely', 'offset',%0A                     'timezone'):%0A            self.assertTrue(hasattr(location_instance, attr))%0A            self.assertTrue(getattr(location_instance, attr) is not None)%0A%0A        self.assertEqual(location_instance.offset, -7)%0A        self.assertEqual(location_instance.timezone, 'America/Los_Angeles')

add location tests