Beispiel #1
0
 def test_countries_limit(self):
     fantasy_countries = custom_countries.FantasyCountries()
     self.assertEqual(list(fantasy_countries), [
         ('NV', 'Neverland'),
         ('NZ', 'New Zealand'),
     ])
     self.assertEqual(len(fantasy_countries), 2)
 def test_countries_limit(self):
     fantasy_countries = custom_countries.FantasyCountries()
     self.assertEqual(list(fantasy_countries), [("NV", "Neverland"),
                                                ("NZ", "New Zealand")])
     self.assertEqual(len(fantasy_countries), 2)