def test_nonempty_table() -> None:
    mod = fromText('def f(): pass')
    t = pages.ChildTable(pages.DocGetter(), mod, mod.contents.values())
    flattened = flatten(t)
    assert 'The renderer named' not in flattened
def test_empty_table() -> None:
    mod = fromText('')
    t = pages.ChildTable(pages.DocGetter(), mod, [])
    flattened = flatten(t)
    assert 'The renderer named' not in flattened
Example #3
0
def test_nonempty_table():
    mod = fromText("def f(): pass")
    t = pages.ChildTable(pages.DocGetter(), mod, mod.orderedcontents)
    flattened = flatten(t)
    assert "The renderer named" not in flattened
def test_empty_table() -> None:
    mod = fromText('')
    t = ChildTable(pages.DocGetter(), mod, [],
                   ChildTable.lookup_loader(TemplateLookup()))
    flattened = flatten(t)
    assert 'The renderer named' not in flattened
Example #5
0
def test_empty_table():
    mod = fromText("")
    t = pages.ChildTable(pages.DocGetter(), mod, [])
    flattened = flatten(t)
    assert "The renderer named" not in flattened