

def _create_instance(self):
    'Create a test instance.'
    inst = {
        
    }
    inst['image_id'] = 1
    inst['reservation_id'] = 'r-fakeres'
    self['user_id'] = self.user_id
    inst['project_id'] = self.project_id
    inst['instance_type_id'] = 1
    inst['ami_launch_index'] = 0
    return db.instance_create(self.context, inst)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/console/test_console.py ConsoleTestCase._create_instance/VarMisuse@33/57 `inst`->`self`