コード例 #1
0
 def test_city_country_population(self):
     """Santiago와 Chile 그리고 인구가 잘 작동하는가?"""
     formatted_name = city_functions('santiago',
                                     'chile',
                                     population=5000000)
     self.assertEqual(
         formatted_name, "City Name: Santiago Country Name: Chile" +
         " -Population: 5000000")
コード例 #2
0
 def test_city_country_population(self):
     formatted_city = city_functions('santiago', 'chile', 5000000)
     self.assertEqual(formatted_city, 'Santiago,Chile - population 5000000')
コード例 #3
0
 def test_city_country(self):
     formatted_city = city_functions('santiago', 'chile')
     self.assertEqual(formatted_city, 'Santiago,Chile')
コード例 #4
0
    def test_city_country(self):
        """测试城市-国家格式"""

        city_country = city_functions('santiago', 'chile')
        self.assertEqual(city_country, 'Santiago, Chile')
コード例 #5
0
    def test_city_country_population(self):
        """测试城市-国家-人口格式"""

        city_country_population = city_functions('santiago', 'chile', 5000000)
        self.assertEqual(city_country_population,
                         'Santiago, Chile - population 5000000')
コード例 #6
0
	def test_city_country(self):
		city_test = city_functions("santiago", "chile")
		self.assertEqual(city_test, "Santiago, Chile")
コード例 #7
0
	def test_city_country_population(self):
		city_test = city_functions("santiago", "chile", "1000000")
		self.assertEqual(city_test, "Santiago, Chile - Population 1000000")
コード例 #8
0
 def test_city_country(self):
     formated_name = city_functions('macapa', 'amapa')
     self.assertEqual(formated_name, 'Macapa,Amapa')
コード例 #9
0
ファイル: test_cities.py プロジェクト: zhangxiaolang/Sublime
 def test_city_province_country(self):
     fullName = city_functions('tianshui', 'china', 'gansu')
     self.assertEqual(fullName, 'Tianshui, Gansu, China')
コード例 #10
0
ファイル: test_cities.py プロジェクト: zhangxiaolang/Sublime
 def test_city_country(self):
     fullName = city_functions('tianshui', 'china')
     self.assertEqual(fullName, 'Tianshui, China')
コード例 #11
0
 def test_city_country(self):
     city_country = city_functions("Santiago", "Chile")
     self.assertEqual(city_country, "Santiago, Chile")
コード例 #12
0
 def test_city_population(self):
     city_country = city_functions("Santiago", "Chile", 5000000)
     self.assertEqual(city_country, "Santiago, Chile-population5000000")
コード例 #13
0
 def test_city_country(self):
     result = city_functions('santiago', 'chile')
     self.assertEqual(result, 'Santiago, Chile')
コード例 #14
0
	def test_city_country(self):
		formated_name = city_functions('amapa','macapa','500')
		self.assertEqual(formated_name,'Amapa,Macapa,Population:500')
コード例 #15
0
 def test_city_country(self):
     """Santiago와 Chile 같은 이름이 잘 작동하는가?"""
     formatted_name = city_functions('santiago', 'chile')
     self.assertEqual(formatted_name,
                      "City Name: Santiago Country Name: Chile")