コード例 #1
0
ファイル: test_parser.py プロジェクト: WilliamMayor/nics
def test_replace_multiple_quoted():
    assert 'A{1}C{2}', ['B', 'D'] == parse.replace_quoted('A"B"C"D"')
コード例 #2
0
ファイル: test_parser.py プロジェクト: WilliamMayor/nics
def test_can_use_replaced_quotes():
    text, quoted = parse.replace_quoted('A"B"C"D"')
    assert 'CD' == 'C{1}'.format(*quoted)
コード例 #3
0
ファイル: test_parser.py プロジェクト: WilliamMayor/nics
def test_replace_single_quoted():
    assert 'A{1}C', ['B'] == parse.replace_quoted('A"B"C')