示例#1
0
    def test_city_country_population(self):
        '''Do city country poplation groupings like santiago chile 5000000 work?'''
        formatted_city_country_pop = format_city_country(
            'santiago', 'chile', '5000000')

        self.assertEqual(formatted_city_country_pop,
                         'Santiago, Chile - Population 5000000')
示例#2
0
    def test_city_country(self):
        '''Do city country pairings like santiago chile work?'''
        formatted_city_country = format_city_country('santiago', 'chile')

        self.assertEqual(formatted_city_country, 'Santiago, Chile')
示例#3
0
 def test_city_country(self):
     """Does city and country like 'santiago' and 'chile' work?"""
     formatted_location = format_city_country('santiago', 'chile')
     self.assertEqual(formatted_location, "Santiago, Chile.")
示例#4
0
 def test_city_country(self):
   city_country = format_city_country('santiago', 'chile')
   self.assertEqual(city_country, 'Santiago, Chile')
示例#5
0
 def test_city_country_population(self):
     """Does city, country, population like 'santiago', 'chile' and 5000000 work?"""
     formatted_location = format_city_country('santiago', 'chile',
                                              '5000000')
     self.assertEqual(formatted_location,
                      "Santiago, Chile - Population 5000000.")