From 5baedf7d186df8cbe171b572d81a3744c39026cf Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Tue, 3 Nov 2015 09:12:40 +0100 Subject: [PATCH] Fix test that was having sentences after return. --- partner_firstname/tests/test_create.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/partner_firstname/tests/test_create.py b/partner_firstname/tests/test_create.py index 6ffe373ac..8f3e06a7f 100644 --- a/partner_firstname/tests/test_create.py +++ b/partner_firstname/tests/test_create.py @@ -62,8 +62,9 @@ class CompanyCase(PersonCase): context = {"default_is_company": True} def setUp(self): - return super(CompanyCase, self).setUp() - self.values.update(lastname=self.values["name"], firstname=False) + super(CompanyCase, self).setUp() + self.good_values.update(lastname=self.values["name"], firstname=False) + self.values = self.good_values.copy() class UserCase(PersonCase, MailInstalled):