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

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