コード例 #1
0
ファイル: test_general.py プロジェクト: slide333333/translate
def test_placeable_file():
    assert general.FilePlaceable.parse(
        "Store in /home/user")[1] == general.FilePlaceable(["/home/user"])
    assert general.FilePlaceable.parse(
        "Store in ~/Download directory")[1] == general.FilePlaceable(
            ["~/Download"])
コード例 #2
0
ファイル: test_general.py プロジェクト: zbj00/translate
def test_placeable_file():
    assert general.FilePlaceable.parse(
        u'Store in /home/user')[1] == general.FilePlaceable([u'/home/user'])
    assert general.FilePlaceable.parse(
        u'Store in ~/Download directory')[1] == general.FilePlaceable(
            [u'~/Download'])