

@mock.patch('nova.db.instance_extra_get_by_instance_uuid')
def test_get_by_instance_uuid_missing(self, mock_get):
    mock_get.return_value = None
    self.assertRaises(exception.MigrationContextNotFound, objects.MigrationContext.get_by_instance_uuid, mock_get.context, 'fake_uuid')

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/objects/test_migration_context.py _TestMigrationContext.test_get_by_instance_uuid_missing/VarMisuse@40/75 `self`->`mock_get`