Esempio n. 1
0
def test_names_unknown():
    p = DummyPage("aoeuaoeu", "# h1\n\nparagraph")
    f, c = get_names(p)
    assert f == "aoeuaoeu"
    assert c is None
Esempio n. 2
0
def test_names():
    p = DummyPage("mdown", "# h1\n\nparagraph")
    f, c = get_names(p)
    assert f == "Markdown"
    assert c == "markdown"