def METHOD_NAME(self):
    try:
        Location.from_dict(None)
        self.fail()
    except exceptions.ParseAPIResponseError:
        pass
    dict1 = {"coord": {"lon": -0.12574, "lat": 51.50853}, "id": 2643743,
             "name": "London", "cnt": 9}
    dict2 = {"city": {"coord": {"lat": 51.50853, "lon": -0.125739},
             "country": "GB", "id": 2643743, "name": "London",
             "population": 1000000}
            }
    dict3 = {"station":{"coord":{"lon":-90.47,"lat":39.38}}}
    dict4 = {"station": {"coord": {"lng": -90.47, "lat": 39.38}}}
    dict5 = {"station":{}}
    result1 = Location.from_dict(dict1)
    result2 = Location.from_dict(dict2)
    result3 = Location.from_dict(dict3)
    result4 = Location.from_dict(dict4)
    self.assertTrue(isinstance(result1, Location))
    self.assertTrue(isinstance(result2, Location))
    self.assertFalse(result1.country is not None)
    self.assertTrue(result1.id is not None)
    self.assertTrue(result1.lat is not None)
    self.assertTrue(result1.lon is not None)
    self.assertTrue(result1.name is not None)
    self.assertTrue(result2.country is not None)
    self.assertTrue(result2.id is not None)
    self.assertTrue(result2.lat is not None)
    self.assertTrue(result2.lon is not None)
    self.assertTrue(result2.name is not None)
    self.assertTrue(result3.lat is not None)
    self.assertTrue(result3.lon is not None)
    self.assertTrue(result3.country is None)
    self.assertTrue(result3.name is None)
    self.assertTrue(result3.id is None)
    self.assertIsInstance(result4, Location)
    self.assertRaises(KeyError, Location.from_dict,  dict5)