/
This commit is contained in:
parent
0e5b176930
commit
22134ca9ee
@ -17,8 +17,6 @@ class TestCoworkingRelation(TransactionCase):
|
||||
self.assertNotEqual('coworker1', 'coworker2')
|
||||
|
||||
with self.assertRaises(ValidationError) as err:
|
||||
coworker1 = self.env['res.partner'].create({'name': 'Marge Simpson', 'is_coworker': True})
|
||||
coworker2 = self.env['res.partner'].create({'name': 'Bart Simpson', 'is_coworker': True})
|
||||
self.assertEqual('coworker1', 'coworker2')
|
||||
self.env['res.partner'].create(coworker1, coworker2)
|
||||
self.assertIn('Coworker1 is same coworker2', unicode(err.exception))
|
||||
|
Loading…
Reference in New Issue
Block a user