コード例 #1
0
ファイル: test_store.py プロジェクト: catch22/pw
def test_parse_entries_syntax_errors(src, expected_error_prefix):
    with pytest.raises(SyntaxError) as excinfo:
        _parse_entries(src.strip())
    assert str(excinfo.value).startswith(expected_error_prefix)
コード例 #2
0
ファイル: test_store.py プロジェクト: catch22/pw
def test_parse_entries(src, expected):
    entries = _parse_entries(src.strip())
    assert entries == expected