コード例 #1
0
def test_mess_one():
    data = title_article.splitter("kgroleth9jfgkgroleth9jfg", "93")
    title = data[0]
    title_art = data[1]
    assert title == "kgroleth9jfgkgroleth9jfg"
    assert title_art == ""
コード例 #2
0
def test_mess_two():
    data = title_article.splitter("k2134&*%78237489(*7534275892", "=_")
    title = data[0]
    title_art = data[1]
    assert title == "k2134&*%78237489(*7534275892"
    assert title_art == ""
コード例 #3
0
def test_jp():
    data = title_article.splitter("カタカナ", "jp")
    title = data[0]
    title_art = data[1]
    assert title == "カタカナ"
    assert title_art == ""
コード例 #4
0
def test_de():
    data = title_article.splitter("Die berühmte Frau", "de")
    title = data[0]
    title_art = data[1]
    assert title == "Berühmte Frau"
    assert title_art == "Die"
コード例 #5
0
def test_en_one():
    data = title_article.splitter("The Lighthouse", "en")
    title = data[0]
    title_art = data[1]
    assert title == "Lighthouse"
    assert title_art == "The"
コード例 #6
0
def test_iso_error():
    data = title_article.splitter("The Lighthouse", "es")
    title = data[0]
    title_art = data[1]
    assert title == "The Lighthouse"
    assert title_art == ""
コード例 #7
0
def test_ar():
    data = title_article.splitter("EL-KALAA", "ar")
    title = data[0]
    title_art = data[1]
    assert title == "Kalaa"
    assert title_art == "El"
コード例 #8
0
def test_fr():
    data = title_article.splitter("L'atlante", "fr")
    title = data[0]
    title_art = data[1]
    assert title == "Atlante"
    assert title_art == "L'"
コード例 #9
0
def test_en_two():
    data = title_article.splitter("the LIGHTHOUSE", "eN")
    title = data[0]
    title_art = data[1]
    assert title == "Lighthouse"
    assert title_art == "The"