Esempio n. 1
0
 def test_city_country(self):
     full_name = get_formatted_name('beijing', 'china')
     self.assertEqual(full_name, 'beijing,china')
Esempio n. 2
0
 def test_city_country(self):
     formatted_name = get_formatted_name("New York", "United States")
     self.assertEqual(formatted_name, "New York, United States")
Esempio n. 3
0
 def test_city_country_population(self):
     full_name = get_formatted_name('beijing',
                                    'china',
                                    population=1400000000)
     self.assertEqual(full_name, 'beijing,china-population 1400000000')
Esempio n. 4
0
	def test_city_country(self):
		"""能够正确地处理Santiage, Chile这样的名称吗?"""
		formatted_name = get_formatted_name('Santiago', 'Chile')
		self.assertEqual(formatted_name, 'Santiago, Chile')
Esempio n. 5
0
 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")
Esempio n. 6
0
 def test_city_country_population(self):
     formatted_name = get_formatted_name(
         'santiago', 'chile', population=5000000)
     self.assertEqual(formatted_name, 'Santiago, Chile - population 5000000')
Esempio n. 7
0
	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')
Esempio n. 8
0
 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")
Esempio n. 11
0
 def test_city_country_name(self):
     city_name = get_formatted_name('上海', '中国')
     self.assertEqual(city_name, '上海 中国')
Esempio n. 12
0
 def test_city_country(self):
     formattedName = get_formatted_name("Denver", "United States");
     self.assertEqual(formattedName, "Denver United States")