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