

@mock.patch('nova.db.instance_extra_get_by_instance_uuid')
def test_get_by_instance_uuid_none(self, mock_get):
    db_context = fake_db_context.copy()
    db_context['migration_context'] = None
    mock_get.return_value = db_context
    self._test_get_by_instance_uuid(mock_get)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/objects/test_migration_context.py _TestMigrationContext.test_get_by_instance_uuid_none/VarMisuse@45/89 `db_context`->`mock_get`