Exemplo n.º 1
0
 def test_county_keys_exist(self):
     response = client.countries()
     for country in response:
         self.assertCountEqual(list(country.keys()), [
             "id",
             "code",
             "name",
             "licensed",
         ])
Exemplo n.º 2
0
 def test_countries(self):
     response = countries()
     self.assertIsNotNone(response)
Exemplo n.º 3
0
 def test_countries_are_not_none(self):
     response = client.countries()
     self.assertIsNotNone(response)
Exemplo n.º 4
0
 def test_more_than_one_country_exists(self):
     response = client.countries()
     self.assertGreater(len(response), 0)