Beispiel #1
0
 def test_get(self):
     self.assertEqual(Country.get("TR"), Country.get("TUR"))
     self.assertEqual(Country.get("TUR"), Country.get("792"))
     self.assertEqual(Country.get("792"), Country.get("TR"))
     self.assertEqual(Country.get("TR"), Country.get("Turkey"))
Beispiel #2
0
 def test_put(self):
     new_country = Country("XX", "XXX", "000", "XX", "XX", "XXX", ".xx",
                           "X X X", "X X X", "", "", [])
     Country.put(new_country)
     self.assertEqual(Country.get("XX"), new_country)