Exemple #1
0
 def test_set_countries(self):
     obj = MultiCountry()
     obj.countries = [fields.Country("NZ"), fields.Country("AU")]
     self.assertEqual(obj.countries, ["NZ", "AU"])
Exemple #2
0
 def test_set_list(self):
     obj = MultiCountry()
     obj.countries = ["NZ", "AU"]
     self.assertEqual(obj.countries, ["NZ", "AU"])
Exemple #3
0
 def test_set_country(self):
     obj = MultiCountry()
     obj.countries = fields.Country("NZ")
     self.assertEqual(obj.countries, ["NZ"])
Exemple #4
0
 def test_set_countries(self):
     obj = MultiCountry()
     obj.countries = [fields.Country('NZ'), fields.Country('AU')]
     self.assertEqual(obj.countries, ['NZ', 'AU'])
Exemple #5
0
 def test_set_text(self):
     obj = MultiCountry()
     obj.countries = "NZ,AU"
     self.assertEqual(obj.countries, ["NZ", "AU"])
Exemple #6
0
 def test_set_list(self):
     obj = MultiCountry()
     obj.countries = ['NZ', 'AU']
     self.assertEqual(obj.countries, ['NZ', 'AU'])
Exemple #7
0
 def test_set_country(self):
     obj = MultiCountry()
     obj.countries = fields.Country('NZ')
     self.assertEqual(obj.countries, ['NZ'])
Exemple #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"])