'Create a test instance.'

def _create_instance(self):

    inst = {}
    inst['image_id'] = 1
    inst['reservation_id'] = 'r-fakeres'
    inst['user_id'] = self.user_id
    inst['project_id'] = self.project_id
    inst['instance_type_id'] = 1
    inst['ami_launch_index'] = 0
    return fake_instance.fake_instance_obj(self.context, **inst)
