Exemplo n.º 1
0
 def test_name_2(self):
     api_caller = ApiCaller()
     self.assertEqual('gbr', api_caller.get_country_id('United Kingdom'))
Exemplo n.º 2
0
 def test_name_1(self):
     api_caller = ApiCaller()
     self.assertEqual('dnk', api_caller.get_country_id('Denmark'))
Exemplo n.º 3
0
 def test_name_6(self):
     api_caller = ApiCaller()
     with self.assertRaises(TypeError):
         api_caller.get_country_id(True)
Exemplo n.º 4
0
 def test_name_5(self):
     api_caller = ApiCaller()
     with self.assertRaises(KeyError):
         api_caller.get_country_id('NotACountry')
Exemplo n.º 5
0
 def test_name_4(self):
     api_caller = ApiCaller()
     self.assertEqual("bhs", api_caller.get_country_id("Bahamas, The"))
Exemplo n.º 6
0
 def test_name_3(self):
     api_caller = ApiCaller()
     api_caller.get_country_id('Sweden')
     self.assertEqual('swe', api_caller.get_country_id('Sweden'))