def test_citys(self): """ 测试1 :return: """ city_output = city_function("chile", "santiago") self.assertEqual(city_output, "Chile,Santiago")
def test_city_country(self): name = city_function('santiago', 'chile') self.assertEqual(name, 'Santiago, Chile')
def test_citys_population(self): """测试添加population是否生效""" city_middle = city_function("chile", "santiago", "5000") self.assertEqual(city_middle, "Chile,Santiago-5000")
def test_city_country(self): city_function_equal = city_function('santiago', 'chile') self.assertEqual(city_function_equal, 'Santiago, Chile')
def test_city_country_population(self): test_city_country_population = city_function('santiago', 'chile', '5000000') self.assertEqual(test_city_country_population, 'Santiago, Chile 5000000')
def test_city_country_population(self): string = city_function('santiago', 'chile', population=5000000) self.assertEqual(string, 'Santiago, Chile - population 5000000')
def test_city_country(self): string = city_function('santiago', 'chile') self.assertEqual(string, 'Santiago, Chile')