def test_commands_cache_lazy(xonsh_builtins): cc = CommandsCache() assert not cc.lazyin("xonsh") assert 0 == len(list(cc.lazyiter())) assert 0 == cc.lazylen()
def test_commands_cache_lazy(): cc = CommandsCache() assert not cc.lazyin('xonsh') assert 0 == len(list(cc.lazyiter())) assert 0 == cc.lazylen()