Esempio n. 1
0
def _number_build_fail(cfg, expected):
    with raises(Exception) as got:
        builtin.number(cfg)
    assert_exception_correct(got.value, expected)
Esempio n. 2
0
def _number_validate_fail(cfg, meta, expected):
    assert builtin.number(cfg)('key', meta) == expected
Esempio n. 3
0
def _number_success(cfg, params):
    assert builtin.number(cfg)('key', params) is None