'test write() on several related fields based on a common computed field.'

def test_25_related_multi(self):

    foo = self.env['test_new_api.foo'].create({'name': 'A', 'value1': 1, 'value2': 2})
    bar = self.env['test_new_api.bar'].create({'name': 'A'})
    self.assertEqual(bar.foo, foo)
    self.assertEqual(bar.value1, 1)
    self.assertEqual(bar.value2, 2)
    foo.invalidate_cache()
    bar.write({'value1': 3, 'value2': 4})
    self.assertEqual(foo.value1, 3)
    self.assertEqual(foo.value2, 4)
