Ejemplo n.º 1
0
def test_NotLessThan_LessThanThreshold_RaisedArgumentOutOfRangeException(
        param, value, param_name, message, expected):
    with expected as err:
        Guard.not_less_than(param=param,
                            thershold=value,
                            param_name=param_name)

    assert message in str(err.value)
Ejemplo n.º 2
0
def test_NotLessThan_GreaterThanThreshold_RaisedArgumentOutOfRangeException(
        param, value):
    Guard.not_less_than(param=param, thershold=value)