forked from michel/Coworking
Merge branch 'V5_unit_test' of ssh://git.yaltik.net:61722/michel/Coworking into V5_unit_test
This commit is contained in:
commit
90f5390f3b
@ -53,5 +53,14 @@ 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)
|
||||
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,
|
||||
'coworker_type': 'staffer'})
|
||||
|
||||
self.assertFalse(homer.coworker_type)
|
||||
|
Loading…
Reference in New Issue
Block a user