def test_city_country_population(self): """Test the function to work with 'seattle usa 100000' ?""" formatted_name = get_city_name('seattle', 'usa', population='100000') self.assertEqual(formatted_name, 'Seattle, Usa - Population 100000')
def test_city_country(self): """Test the fucntion to work with 'hyderabad india'?""" formatted_name = get_city_name('hyderabad', 'india') self.assertEqual(formatted_name, 'Hyderabad, India')
def test_city_country(self): """Does input like 'Santiago, Chile' work?""" formatted_string = get_city_name('santiago', 'chile') self.assertEqual(formatted_string, 'Santiago, Chile')
def test_city_country(self): """Does a name like 'Santiago, Chile' work?""" formatted_name = get_city_name('santiago', 'chile', 5000000) self.assertEqual(formatted_name, 'Santiago, Chile - population 5000000')
def test_city_country_population(self): """Do cities and countries with a population work?""" formatted_string = get_city_name('santiago', 'chile', 5000000) self.assertEqual(formatted_string, 'Santiago, Chile - population 5000000')
def test_city_country_population(self): """Can I include a population argument?""" santiago_chile = get_city_name('santiago', 'chile', population=5_000_000) self.assertEqual(santiago_chile, 'Santiago, Chile - population 5000000')
def test_city_name(self): result = get_city_name("santiago", "chilie") self.assertEqual(result, "Santiago, Chilie")
def test_city_country(self): """Do cities like 'Boston, Massachusetts' work?""" formated_name = get_city_name('boston', 'massachusetts') self.assertEqual(formated_name, 'Boston, Massachusetts')
def test_city_country_population(self): """Do cities like 'Dallas, Texas - 1331000' work?""" formated_name = get_city_name('dallas', 'texas', '1331000') self.assertEqual(formated_name, 'Dallas, Texas - 1331000')