def test_empty(): ie = Empty({"v": {"variable": "v"}}) assert ie.test(Context.from_variables(v=False)) assert ie.test(Context.from_variables(v=())) assert ie.test(Context.from_variables(v=0)) assert not ie.test(Context.from_variables(v=6))