/
This commit is contained in:
parent
817665d782
commit
176e5ce696
@ -53,8 +53,14 @@ class TestCoworkingCoworker(TransactionCase):
|
||||
homer = self.env['res.partner'].create({'name': 'Homer Simpson', 'is_coworker': False})
|
||||
self.assertFalse(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': True,
|
||||
'coworker_type': 'visitor'})
|
||||
self.assertEqual(homer.coworker_type, 'visitor')
|
||||
|
||||
# homer = self.env['res.partner'].create({'name': 'Homer Simpson', 'is_coworker': False})
|
||||
# self.assertIs(homer.coworker_type, True)
|
||||
|
||||
homer = self.env['res.partner'].create({'name': 'Homer Simpson',
|
||||
'is_coworker': False,
|
||||
'coworker_type': 'staffer'})
|
||||
|
||||
self.assertFalse(homer.coworker_type)
|
||||
|
Loading…
Reference in New Issue
Block a user