diff --git a/coworking_coworker/tests/test_coworking_coworker.py b/coworking_coworker/tests/test_coworking_coworker.py index 4d58bf9..e91bc01 100644 --- a/coworking_coworker/tests/test_coworking_coworker.py +++ b/coworking_coworker/tests/test_coworking_coworker.py @@ -33,11 +33,10 @@ class TestCoworkingCoworker(TransactionCase): def test_full_address(self): """ Test full address rendering """ full_contact_adress = fields.Char.from_string(self.homer.full_contact_adress) - self.assertEqual(full_contact_adress, {full_contact_adress = u'{} {} {}'.format (street or u'', contact_zip or u'', city or u'').strip()}) - fulladdr = self.env{'street': '29 Grande rue', 'contact_zip': '26270', 'city': 'Loriol'} + full_address = self.env{'contact_zip': '26270', 'city': 'Loriol'} - self.assertEqual(fulladdr.full_contact_adress, '29 Grande rue 26270 Loriol') + self.assertEqual(full_address.full_contact_adress, '26270 Loriol') with self.assertRaises(ValidationError) as err: fulladdr = {'street': '29 Grande rue',