def test_city_country_population(self): """Checks if City Country, Population is formatted right""" correct_ccp_format = city_country("highland park", "illinois", 29641) self.assertEqual(correct_ccp_format, "Highland Park, Illinois -Population: 29641")
def test_city_country(self): """Does a simple city and country pair work?""" santiago_chile = city_country('santiago', 'chile') self.assertEqual(santiago_chile, 'Santiago, Chile')
def test_city_country(self): formatted = city_country('tian jin', 'china') self.assertEqual(formatted, 'Tian Jin, China')
def test_city_country_population(self): format = city_country('santiago', 'chile', population=5000000) self.assertEqual(format, 'Santiago, Chile - Population 5000000')
def test_city_country(self): """Does City, Country work?""" formatted_city_country = city_country('salt lake city', 'usa') self.assertEqual(formatted_city_country, 'Salt Lake City, Usa')
def test_city_country_population(self): city_country_formatted = city_country('santiago', 'chile', population=5000000) self.assertEqual(city_country_formatted, 'Santiago, Chile - população 5000000')
def test_3(self): """Do names like ' PARIS , FRANCE ' works ?""" formal_name = city_country(' PARIS ', ' FRANCE ') self.assertEqual(formal_name, 'Paris, France')
def test_city_country_population(self): santiago_chile = city_country('santiago', 'chile', population=500000) self.assertEqual(santiago_chile, 'Santiago, Chile - population500000')
def test_city_country_population(self): message = city_country('santiago', 'chile', 5000000) self.assertEqual(message, 'Santiago,Chile - population 5000000')
def test_city_country(self): """Do city and country such as Santiago, Chile work?.""" formatted_place = city_country('santiago', 'chile') self.assertEqual(formatted_place, 'Santiago, Chile.')
def test_cities(self): message = city_country('santiago', 'chile') self.assertEqual(message, 'Santiago,Chile')
def test_city_country(): c_c = city_country('ShangHai', 'China', 2000) self.assertEqual(c_c, 'ShangHai,China - 2000')
def test_city_country(self): formatted = city_country("santiago", "chile") self.assertEqual(formatted, "Santiago, Chile")
def test_city_country(self): """does a simple city and country pair work?""" santiago_chili = city_country('santiago', 'chile') self.assertEqual(santiago_chile, 'Santiago, Chile')
def test_1(self): """Do names like 'Paris, France' works ?""" formal_name = city_country('Paris', 'France') self.assertEqual(formal_name, 'Paris, France')
def test_city_country(self): """Do pairs like 'Santiago, Chile' work?""" formatted_city_country = city_country('santiago', 'chile') self.assertEqual(formatted_city_country, 'Santiago, Chile')
def test_city_country(self): a = city_functions.city_country('sofia', 'bulgaria') self.assertEqual(a, "Sofia, Bulgaria")
def test_city_country(self): santiago_chile = city_country('santiago', 'chile') self.assertEqual(santiago_chile, 'Santiago, Chile')
def test_city_country_pop(self): b = city_functions.city_country('sofia', 'bulgaria', 2000000) self.assertEqual(b, "Sofia, Bulgaria - population 2000000")
def test_city_country(self): city_country_formatted = city_country('santiago', 'chile') self.assertEqual(city_country_formatted, 'Santiago, Chile')
def test_city_country(self): """Czy dane w postaci 'Santiago, Chile' są obsługiwane prawidłowo?""" santiago_chile = city_country('santiago', 'chile') self.assertEqual(santiago_chile, 'Santiago, Chile')
def test_city_country(self): test_case = city_country('santiago', 'chile') self.assertEqual(test_case, 'Santiago, Chile')
def test_city_county_name(self): formatted_name = city_country('warsaw', 'poland') self.assertEqual(formatted_name, 'Warsaw, Poland')
def test_city_country(self): format = city_country('santiago', 'chile') self.assertEqual(format, 'Santiago, Chile')
def test_city_county__population_name(self): formatted_name = city_country('warsaw', 'poland', 1000000) self.assertEqual(formatted_name, 'Warsaw, Poland - population 1000000')
def test_city_country(self): """Does 'Santiago, Chile' print correctly?""" formatted_name = city_country('santiago', 'chile') self.assertEqual(formatted_name, 'Santiago, Chile')
def test_city_country_population(self): """ Do location like 'Santiago, Chile - 50000' works""" location = city_country('santiago', 'chile', '50000') self.assertEqual(location, 'Santiago, Chile - 50000')
def test_city_country(self): """Checks if City Country is correctly formatted""" correct_cc_format = city_country("santiago", "chile") self.assertEqual(correct_cc_format, "Santiago, Chile")
def test_city_country(self): """ Do location like 'Santiago, Chile' works?""" location = city_country('santiago', 'chile') self.assertEqual(location, 'Santiago, Chile')
from city_functions import city_country print("Enter 'q' at any time to quit.") while True: city = input("\nPlease give me a city's name: ") if city == 'q': break country = input("What country is this city located? ") if country == 'q': break formatted_city_and_country = city_country(city, country) print(formatted_city_and_country)
def test_city_country_population(self): """Does City, Country Population work?""" formatted_city_country_pop = city_country('salt lake city', 'usa', '200,544') self.assertEqual(formatted_city_country_pop, 'Salt Lake City, Usa 200,544')
def test_city_country(self): s = city_country('vienna', 'austria') self.assertEqual(s, 'Vienna, Austria')
def test_city_country_population(self): """Do values like 'Santiago, Chile - population 5000000' work?""" formatted_city_country = city_country('santiago', 'chile', '5000000') self.assertEqual(formatted_city_country, 'Santiago, Chile - population 5000000')