Beispiel #1
0
def _units_build_fail(cfg, expected):
    with raises(Exception) as got:
        builtin.units(cfg)
    assert_exception_correct(got.value, expected)
Beispiel #2
0
def _units_validate_fail(cfg, meta, expected):
    assert builtin.units(cfg)('key', meta) == expected
Beispiel #3
0
def _units_good(cfg, meta):
    assert builtin.units(cfg)('key', meta) is None