Ejemplo n.º 1
0
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"
Ejemplo n.º 2
0
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"