def test_set_countries(self): obj = MultiCountry() obj.countries = [fields.Country("NZ"), fields.Country("AU")] self.assertEqual(obj.countries, ["NZ", "AU"])
def test_set_list(self): obj = MultiCountry() obj.countries = ["NZ", "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_countries(self): obj = MultiCountry() obj.countries = [fields.Country('NZ'), fields.Country('AU')] self.assertEqual(obj.countries, ['NZ', 'AU'])
def test_set_text(self): obj = MultiCountry() obj.countries = "NZ,AU" self.assertEqual(obj.countries, ["NZ", "AU"])
def test_set_list(self): obj = MultiCountry() obj.countries = ['NZ', '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_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"])