@contract
def threshold_factory(time_step, migration_time, params):
    return lambda utilization, state=None: (threshold(params['threshold'],
                                                      utilization),
                                            {})
Test DELETEing a resource which violates a foreign key
dataset/ETHPy150Open beloglazov/openstack-neat/neat/locals/overload/trivial.py/threshold_factory--crossover with--dataset/ETHPy150Open jeffknupp/sandman/tests/test_sandman.py/TestSandmanBasicVerbs.test_delete_resource_violating_constraint