Beispiel #1
0
 def test_set_countries(self):
     obj = MultiCountry()
     obj.countries = [fields.Country("NZ"), fields.Country("AU")]
     self.assertEqual(obj.countries, ["NZ", "AU"])
Beispiel #2
0
 def test_set_list(self):
     obj = MultiCountry()
     obj.countries = ["NZ", "AU"]
     self.assertEqual(obj.countries, ["NZ", "AU"])
Beispiel #3
0
 def test_set_country(self):
     obj = MultiCountry()
     obj.countries = fields.Country("NZ")
     self.assertEqual(obj.countries, ["NZ"])
Beispiel #4
0
 def test_set_countries(self):
     obj = MultiCountry()
     obj.countries = [fields.Country('NZ'), fields.Country('AU')]
     self.assertEqual(obj.countries, ['NZ', 'AU'])
Beispiel #5
0
 def test_set_text(self):
     obj = MultiCountry()
     obj.countries = "NZ,AU"
     self.assertEqual(obj.countries, ["NZ", "AU"])
Beispiel #6
0
 def test_set_list(self):
     obj = MultiCountry()
     obj.countries = ['NZ', 'AU']
     self.assertEqual(obj.countries, ['NZ', 'AU'])
Beispiel #7
0
 def test_set_country(self):
     obj = MultiCountry()
     obj.countries = fields.Country('NZ')
     self.assertEqual(obj.countries, ['NZ'])
Beispiel #8
0
 def test_set_text(self):
     obj = MultiCountry()
     obj.countries = 'NZ,AU'
     self.assertEqual(obj.countries, ['NZ', 'AU'])
 def test_set_countries(self):
     obj = MultiCountry()
     obj.countries = [fields.Country("NZ"), fields.Country("AU")]
     self.assertEqual(obj.countries, ["NZ", "AU"])
 def test_set_country(self):
     obj = MultiCountry()
     obj.countries = fields.Country("NZ")
     self.assertEqual(obj.countries, ["NZ"])
 def test_set_list(self):
     obj = MultiCountry()
     obj.countries = ["NZ", "AU"]
     self.assertEqual(obj.countries, ["NZ", "AU"])
 def test_set_text(self):
     obj = MultiCountry()
     obj.countries = "NZ,AU"
     self.assertEqual(obj.countries, ["NZ", "AU"])