This commit is contained in:
michel 2017-12-04 16:45:23 +01:00
parent 0e5b176930
commit 22134ca9ee

View File

@ -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))