Beispiel #1
0
def test_parse_org():    
    test_line = 'ORG:Aaa, Bbb' 
    assert pv.parse_org(test_line) == 'Aaa  Bbb'
Beispiel #2
0
def test_parse_org():
    test_line = 'ORG:Aaa (BB & Ccc Ddd);' 
    assert pv.parse_org(test_line) == 'Aaa (BB & Ccc Ddd)'
Beispiel #3
0
def test_parse_org_with_escape_sign_and_comma():
    test_line = r'ORG:Aaa\, Bbb;'
    assert pv.parse_org(test_line) == 'Aaa  Bbb'
Beispiel #4
0
def test_parse_org_with_semi_colon():
    test_line = 'ORG:Aaa;Bbb' 
    assert pv.parse_org(test_line) == 'Aaa Bbb'
Beispiel #5
0
def test_parse_org_with_escape_sign():
    test_line = r'ORG:Aaa\ Bbb;'
    assert pv.parse_org(test_line) == r'Aaa\ Bbb'
Beispiel #6
0
def test_parse_org_with_spaces():
    test_line = 'ORG:Aaa Bbb;' 
    assert pv.parse_org(test_line) == 'Aaa Bbb'
Beispiel #7
0
def test_parse_org_with_dashes():
    test_line = 'ORG:aaa - bbb;' 
    assert pv.parse_org(test_line) == 'aaa - bbb'
Beispiel #8
0
def test_parse_org_prefix_only():
    test_line = 'ORG:Aaaa;' 
    assert pv.parse_org(test_line) == 'Aaaa'
Beispiel #9
0
def test_parse_org_new_line():
    test_line = 'ORG:Aaaa;\n' 
    assert pv.parse_org(test_line) == 'Aaaa'