示例#1
0
	def test_city_country(self):
		location = get_location("hangzhou", "china")
		self.assertEqual(location, "hangzhou, china")
 def test_city_country(self):
     """Does the get_location return output like 'Karachi, Pakistan'?"""
     location_string = get_location('santiago', 'chile')
     self.assertEqual(location_string, 'Santiago, Chile')
示例#3
0
 def test_city_country_population(self):
     location = get_location("hangzhou", "china", 666)
     self.assertEqual(location, "hangzhou, china - population 666")
 def test_city_country_population(self):
     """Does get_location return output like 'Karachi, Pakistan, 500000'"""
     location_string = get_location('santiago', 'chile', 5000000)
     self.assertEqual(location_string,
                      "Santiago, Chile - population 5000000")