def test_city_country_population(self): right_return = city_function("beijing","china","4000000") self.assertEqual(right_return,"Beijing China - Population 4000000")
def test_city_country(self): formated_city = city_function('beijing', 'china') self.assertEqual(formated_city, 'Beijing, China')
def test_city_country_population(self): formated_city = city_function('beijing', 'china', 20000000) self.assertEqual(formated_city, 'Beijing, China - population 20000000')
def test_city_country(self): city_funtcion = city_function("santiago", "chile") self.assertEqual(city_funtcion, "santiago, chile")
def test_city_country_population(self): city_funtcion = city_function("santiago", "chile", population="5000000") self.assertEqual(city_funtcion, "santiago, chile - population 5000000")
def test_city_function(self): city_country = city_function('santiago', 'chile') self.assertEqual(city_country, 'Santiago,Chile')
def test_city_country_population(self): city_country_population = city_function('santiago', 'chile', population=5000000) self.assertEqual(city_country_population, 'Santiago,Chile - population 5000000')
def test_cities(self): right_retrun = city_functions.city_function("beijing", "china", '5000000') self.assertEqual(right_retrun, "Beijing China - Population 5000000")
def test_cities(self): right_retrun = city_function(city,country,population) self.assertEqual(right_retrun,"Beijing China - Population 4000000")
def test_city_country_population(self): """ do city, country -populationxxx work? """ test = city_function('chennai','India',population = 100000) self.assertEqual(test, f'Chennai, India - population 100000' )
def test_city_country(self): """ do tests like city name , country work """ test = city_function('chennai', 'india') self.assertEqual(test, 'Chennai, India')
def test_city_country(self): """正常返回功能""" ccstr = city_function('天津', '中国') self.assertEqual(ccstr, '天津,中国')
def test_city_country_population(self): """正常返回加人口""" ccstr = city_function('天津', '中国', 1000) self.assertEqual(ccstr, '天津,中国 1000')
def test_city_functions(self): cc = city_function("北京", "中国", '5000') self.assertEqual(cc, '北京中国5000')
def test_city_country_population(self): format_name = city_function('santiago', 'chile', 5000000) self.assertEqual(format_name, 'Santiago,Chile - population 5000000')
def test_city_country(self): format_name = city_function('santiago', 'chile') self.assertEqual(format_name, 'Santiago,Chile')