def test_italic():
    assert Italic("''i").text == 'i'
    assert Italic("'''''i'''''").text == "'''i'''"
    assert Italic("''i<!---->'<!---->'").text == "i<!---->"
    assert Italic("''i'''").text == "i'"
    # searching "''' ''i'''" for italics gives "''i'''", but it has not end
    assert Italic("''i'''", end_token=False).text == "i'''"
def test_sub_italics():
    i = Italic("''A{{{text|''b''}}}C''")
    assert i.get_italics(recursive=False) == []
    recursive_subitalics = i.get_italics()
    assert len(recursive_subitalics) == 1  # ?
    assert recursive_subitalics[0]._span_data[:2] == [11, 16]