From 817665d78280affac12f9a8f62a781a822842e9f Mon Sep 17 00:00:00 2001 From: michel Date: Mon, 4 Dec 2017 12:29:14 +0100 Subject: [PATCH] Test avec is-coworker True et un coworker type. Test avec is_coworker False et un coworker type qui donne false. --- coworking_coworker/tests/test_coworking_coworker.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/coworking_coworker/tests/test_coworking_coworker.py b/coworking_coworker/tests/test_coworking_coworker.py index f6988de..d81ee93 100644 --- a/coworking_coworker/tests/test_coworking_coworker.py +++ b/coworking_coworker/tests/test_coworking_coworker.py @@ -53,5 +53,8 @@ class TestCoworkingCoworker(TransactionCase): homer = self.env['res.partner'].create({'name': 'Homer Simpson', 'is_coworker': False}) self.assertFalse(homer.coworker_type) - homer = self.env['res.partner'].create({'name': 'Homer Simpson', 'is_coworker': True}) - self.assertTrue(homer.coworker_type) + homerf = self.env['res.partner'].create({'name': 'Homer Simpson', 'is_coworker': True}) + self.assertEqual(homerf.coworker_type, u'Visitor') + + # homer = self.env['res.partner'].create({'name': 'Homer Simpson', 'is_coworker': False}) + # self.assertIs(homer.coworker_type, True)