def test_city_country(self): full_name = get_formatted_name('beijing', 'china') self.assertEqual(full_name, 'beijing,china')
def test_city_country(self): formatted_name = get_formatted_name("New York", "United States") self.assertEqual(formatted_name, "New York, United States")
def test_city_country_population(self): full_name = get_formatted_name('beijing', 'china', population=1400000000) self.assertEqual(full_name, 'beijing,china-population 1400000000')
def test_city_country(self): """能够正确地处理Santiage, Chile这样的名称吗?""" formatted_name = get_formatted_name('Santiago', 'Chile') self.assertEqual(formatted_name, 'Santiago, Chile')
def test_city_country_population(self): formatted_name = get_formatted_name("New York", "United States", 8550405) self.assertEqual(formatted_name, "New York, United States - Population 8550405")
def test_city_country_population(self): formatted_name = get_formatted_name( 'santiago', 'chile', population=5000000) self.assertEqual(formatted_name, 'Santiago, Chile - population 5000000')
def test_city_country_population(self): """能够正确地处理Santiage, Chile - population 5000000这样的形式吗?""" formatted_name = get_formatted_name( 'Santiago', 'Chile', 5000000) self.assertEqual(formatted_name, 'Santiago, Chile - Population 5000000')
def test_city_country(self): formatted_name = get_formatted_name('santiago', 'chile') self.assertEqual(formatted_name, 'Santiago, Chile')
def test_city_country_population(self): formattedName = get_formatted_name("santiago", "chile", 500000) self.assertEqual(formattedName, "Santiago, Chile - population 500000")
def test_city_country(self): formattedName = get_formatted_name("santiago", "chile") self.assertEqual(formattedName, "Santiago, Chile")
def test_city_country_name(self): city_name = get_formatted_name('上海', '中国') self.assertEqual(city_name, '上海 中国')
def test_city_country(self): formattedName = get_formatted_name("Denver", "United States"); self.assertEqual(formattedName, "Denver United States")