'take the in-db records and merge the provided information in'

def test_UPDATE_command(self):

    foo = self.env['res.partner'].create({'name': 'foo'})
    bar = self.env['res.partner'].create({'name': 'bar'})
    baz = self.env['res.partner'].create({'name': 'baz', 'city': 'tag'})
    commands = [LINK_TO(foo.id), UPDATE(bar.id, {'name': 'qux', 'city': 'tagtag'}), UPDATE(baz.id, {'name': 'quux'})]
    results = self.env['res.partner'].resolve_2many_commands('child_ids', commands, ['name', 'city'])
    self.assertItemsEqual(results, [{'id': foo.id, 'name': 'foo', 'city': False}, {'id': bar.id, 'name': 'qux', 'city': 'tagtag'}, {'id': baz.id, 'name': 'quux', 'city': 'tag'}])
