Exemplo n.º 1
0
 def test_set_countries(self):
     obj = MultiCountry()
     obj.countries = [fields.Country("NZ"), fields.Country("AU")]
     self.assertEqual(obj.countries, ["NZ", "AU"])
Exemplo n.º 2
0
 def test_set_list(self):
     obj = MultiCountry()
     obj.countries = ["NZ", "AU"]
     self.assertEqual(obj.countries, ["NZ", "AU"])
Exemplo n.º 3
0
 def test_set_country(self):
     obj = MultiCountry()
     obj.countries = fields.Country("NZ")
     self.assertEqual(obj.countries, ["NZ"])
Exemplo n.º 4
0
 def test_set_countries(self):
     obj = MultiCountry()
     obj.countries = [fields.Country('NZ'), fields.Country('AU')]
     self.assertEqual(obj.countries, ['NZ', 'AU'])
Exemplo n.º 5
0
 def test_set_text(self):
     obj = MultiCountry()
     obj.countries = "NZ,AU"
     self.assertEqual(obj.countries, ["NZ", "AU"])
Exemplo n.º 6
0
 def test_set_list(self):
     obj = MultiCountry()
     obj.countries = ['NZ', 'AU']
     self.assertEqual(obj.countries, ['NZ', 'AU'])
Exemplo n.º 7
0
 def test_set_country(self):
     obj = MultiCountry()
     obj.countries = fields.Country('NZ')
     self.assertEqual(obj.countries, ['NZ'])
Exemplo n.º 8
0
 def test_set_text(self):
     obj = MultiCountry()
     obj.countries = 'NZ,AU'
     self.assertEqual(obj.countries, ['NZ', 'AU'])
Exemplo n.º 9
0
 def test_set_countries(self):
     obj = MultiCountry()
     obj.countries = [fields.Country("NZ"), fields.Country("AU")]
     self.assertEqual(obj.countries, ["NZ", "AU"])
Exemplo n.º 10
0
 def test_set_country(self):
     obj = MultiCountry()
     obj.countries = fields.Country("NZ")
     self.assertEqual(obj.countries, ["NZ"])
Exemplo n.º 11
0
 def test_set_list(self):
     obj = MultiCountry()
     obj.countries = ["NZ", "AU"]
     self.assertEqual(obj.countries, ["NZ", "AU"])
Exemplo n.º 12
0
 def test_set_text(self):
     obj = MultiCountry()
     obj.countries = "NZ,AU"
     self.assertEqual(obj.countries, ["NZ", "AU"])