def test_doc_node_with_filters(): with wrap() as wrapper: node = Node.create_instance('doc', "foo.txt|outputabc", wrapper, [], contents='foo') assert node.key_with_class() == "doc:foo.txt|outputabc"
def test_doc_node_populate(): with wrap() as wrapper: node = Node.create_instance('doc', "foo.txt", wrapper, [], contents='foo') assert node.key_with_class() == "doc:foo.txt"