def test_positivedecimal_err():
    with raises(ValueError) as excinfo:
        Foo(c=Decimal((- 5)))
    assert ('c: Got -5; Expected a positive number' in str(excinfo.value))
def test_positivedecimal_err():
    with raises(ValueError) as excinfo:
        Foo(c=Decimal((- 5)))
    assert ('c: Got -5; Expected a positive number' in str(excinfo.value))