def test_location_properties(): location_data = LocationData({ "city_name": "Santiago", "continent_code": "SA", "country_name": "Chile", "latitude": -33.44999999999999, "longitude": -70.6667, "postal_code": "", "region_name": "12", "timezone": "Chile/Continental", "country_code": "CHL" }) eq_(location_data.city_name, 'Santiago') eq_(location_data.continent_code, 'SA') eq_(location_data.country_name, 'Chile') eq_(location_data.latitude, -33.44999999999999) eq_(location_data.longitude, -70.6667) eq_(location_data.postal_code, '') eq_(location_data.region_name, '12') eq_(location_data.timezone, 'Chile/Continental') eq_(location_data.country_code, 'CHL')
def test_properties(self): location_data = LocationData({ "city_name": "Santiago", "continent_code": "SA", "country_name": "Chile", "latitude": -33.44999999999999, "longitude": -70.6667, "postal_code": "", "region_name": "12", "timezone": "Chile/Continental", "country_code": "CHL" }) self.assertEqual('Santiago', location_data.city_name) self.assertEqual('SA', location_data.continent_code) self.assertEqual('Chile', location_data.country_name) self.assertEqual(-33.44999999999999, location_data.latitude) self.assertEqual(-70.6667, location_data.longitude) self.assertEqual('', location_data.postal_code) self.assertEqual('12', location_data.region_name) self.assertEqual('Chile/Continental', location_data.timezone) self.assertEqual('CHL', location_data.country_code)
def test_setattr(self): location_data = LocationData() location_data.city_name = "Dublin"
def test_location_setitem(): location_data = LocationData() location_data['city_name'] = "Dublin"
def test_location_setattr(): location_data = LocationData() location_data.city_name = "Dublin"