def test_hashing_with_utf8(self): a = UserAddress(first_name=u"\u0141ukasz Smith", last_name=u'Smith', line1=u"75 Smith Road", postcode=u"n4 8ty", country=self.country, user=self.user) a.active_address_fields()
def test_hashing_with_utf8(self): a = UserAddress( first_name=u"\u0141ukasz Smith", last_name=u"Smith", line1=u"75 Smith Road", postcode=u"n4 8ty", country=self.country, user=self.user, ) a.active_address_fields()
def test_active_address_fields_skips_whitespace_only_fields(self): a = UserAddress(first_name=" ", last_name='Barrington', line1=" 75 Smith Road ", postcode=" n4 8ty", country=self.country, user=self.user) active_fields = a.active_address_fields() self.assertEquals("Barrington", active_fields[0])
def test_active_address_fields_skips_whitespace_only_fields(self): a = UserAddress( first_name=" ", last_name="Barrington", line1=" 75 Smith Road ", postcode=" n4 8ty", country=self.country, user=self.user, ) active_fields = a.active_address_fields() self.assertEquals("Barrington", active_fields[0])