Example #1
0
def test_AddParser_parseReminder_quotes_multiple():
    ap = AddParser(
        '+ @14:00@12:00@9:00 "Pick up cake and \'cheese\'" "Get \'chicken\'" #2342342344#8578478574'
    )
    assert ap.parseReminder() == [
        '"Pick up cake and \'cheese\'"', '"Get \'chicken\'"'
    ]
Example #2
0
def test_AddParser_parseReminder_multiple():
    ap = AddParser(
        '+ @14:00@12:00@9:00 "Pick up cake and cheese" "Grab coffee for road" #2342342344#8578478574'
    )
    assert ap.parseReminder() == [
        '"Pick up cake and cheese"', '"Grab coffee for road"'
    ]
Example #3
0
def test_AddParser_parseReminder_quotes():
    ap = AddParser(
        '+ @14:00@12:00@9:00 "Pick up cake and \'cheese\'" #2342342344#8578478574'
    )
    print(ap.msg_body)
    assert ap.parseReminder() == ['"Pick up cake and \'cheese\'"']
Example #4
0
def test_AddParser_parseReminder():
    ap = AddParser(
        '+ @14:00@12:00@9:00 "Pick up cake and cheese" #2342342344#8578478574')
    assert ap.parseReminder() == ['"Pick up cake and cheese"']