

def test_remove_console(self):
    instance = self._create_instance()
    console_id = self.console.add_console(self.context, instance['id'])
    self.console.remove_console(self.context, console_id)
    self.assertRaises(exception.NotFound, db.console_get, self.context, console_id)
    db.instance_destroy(instance.context, instance['uuid'])

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/console/test_console.py ConsoleTestCase.test_remove_console/VarMisuse@72/91 `self`->`instance`