From 58d6dec996ca2a767433d9f5d9c1f36d34804812 Mon Sep 17 00:00:00 2001 From: michel Date: Thu, 30 Nov 2017 18:59:43 +0100 Subject: [PATCH] =?UTF-8?q?Je=20n'ai=20pas=20modifi=C3=A9=20le=20with=20po?= =?UTF-8?q?ur=20le=20moment=20et=20j'ai=20une=20syntax=20error=20sur=20mon?= =?UTF-8?q?=20full=5Faddress=20que=20je=20ne=20trouve=20pas.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coworking_coworker/tests/test_coworking_coworker.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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',