'reads the records from the database, records are returned with their ids.'

def test_LINK_TO_command(self):

    ids = [self.env['res.partner'].create({'name': 'foo'}).id, self.env['res.partner'].create({'name': 'bar'}).id, self.env['res.partner'].create({'name': 'baz'}).id]
    commands = map(LINK_TO, ids)
    results = self.env['res.partner'].resolve_2many_commands('child_ids', commands, ['name'])
    self.assertItemsEqual(results, [{'id': ids[0], 'name': 'foo'}, {'id': ids[1], 'name': 'bar'}, {'id': ids[2], 'name': 'baz'}])
