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')
Esempio n. 4
0
 def test_city_country(self):
     city_funtcion = city_function("santiago", "chile")
     self.assertEqual(city_funtcion, "santiago, chile")
Esempio n. 5
0
 def test_city_country_population(self):
     city_funtcion = city_function("santiago",
                                   "chile",
                                   population="5000000")
     self.assertEqual(city_funtcion, "santiago, chile - population 5000000")
Esempio n. 6
0
 def test_city_function(self):
     city_country = city_function('santiago', 'chile')
     self.assertEqual(city_country, 'Santiago,Chile')
Esempio n. 7
0
 def test_city_country_population(self):
     city_country_population = city_function('santiago',
                                             'chile',
                                             population=5000000)
     self.assertEqual(city_country_population,
                      'Santiago,Chile - population 5000000')
Esempio n. 8
0
 def test_cities(self):
     right_retrun = city_functions.city_function("beijing", "china",
                                                 '5000000')
     self.assertEqual(right_retrun, "Beijing China - Population 5000000")
Esempio n. 9
0
 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')
Esempio n. 12
0
 def test_city_country(self):
     """正常返回功能"""
     ccstr = city_function('天津', '中国')
     self.assertEqual(ccstr, '天津,中国')
Esempio n. 13
0
 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')
Esempio n. 15
0
 def test_city_country_population(self):
     format_name = city_function('santiago', 'chile', 5000000)
     self.assertEqual(format_name, 'Santiago,Chile - population 5000000')
Esempio n. 16
0
 def test_city_country(self):
     format_name = city_function('santiago', 'chile')
     self.assertEqual(format_name, 'Santiago,Chile')