Exemplo n.º 1
0
def test_noop():
    # not much to test here.
    n = builtin.noop({})

    assert n('key', {}) is None
Exemplo n.º 2
0
def _noop_fail_build(cfg, expected):
    with raises(Exception) as got:
        builtin.noop(cfg)
    assert_exception_correct(got.value, expected)