Beispiel #1
0
def test_mail_quote_no_newline():
    assert mail_quote('Insert output here.') == '> Insert output here.\n'
Beispiel #2
0
def test_mail_quote_carriage_returns():
    assert mail_quote('Insert output here.\rOutsert input there.\r') == \
        '> Insert output here.\n> Outsert input there.\n'
Beispiel #3
0
def test_mail_quote_newline():
    assert mail_quote('\n') == '> \n'
Beispiel #4
0
def test_mail_quote_nothing():
    assert mail_quote('') == '> \n'
Beispiel #5
0
def test_mail_quote_crlf():
    assert mail_quote('Insert output here.\r\nOutsert input there.\r\n') == \
        '> Insert output here.\n> Outsert input there.\n'
Beispiel #6
0
def test_mail_quote_inner_newline():
    assert mail_quote('Insert output here.\nOutsert input there.') == \
        '> Insert output here.\n> Outsert input there.\n'
Beispiel #7
0
def test_mail_quote_two_lines():
    assert mail_quote('Insert output here.\nOutsert input there.\n') == \
        '> Insert output here.\n> Outsert input there.\n'
Beispiel #8
0
def test_mail_quote_no_newline():
    assert mail_quote('Insert output here.') == '> Insert output here.\n'
Beispiel #9
0
def test_mail_quote_one_line():
    assert mail_quote('Insert output here.\n') == '> Insert output here.\n'
Beispiel #10
0
def test_mail_quote_nothing():
    assert mail_quote('') == '> \n'
Beispiel #11
0
def test_mail_quote_newline():
    assert mail_quote('\n') == '> \n'
Beispiel #12
0
def test_mail_quote_carriage_returns():
    assert mail_quote('Insert output here.\rOutsert input there.\r') == \
        '> Insert output here.\n> Outsert input there.\n'
Beispiel #13
0
def test_mail_quote_crlf():
    assert mail_quote('Insert output here.\r\nOutsert input there.\r\n') == \
        '> Insert output here.\n> Outsert input there.\n'
Beispiel #14
0
def test_mail_quote_two_lines():
    assert mail_quote('Insert output here.\nOutsert input there.\n') == \
        '> Insert output here.\n> Outsert input there.\n'
Beispiel #15
0
def test_mail_quote_inner_newline():
    assert mail_quote('Insert output here.\nOutsert input there.') == \
        '> Insert output here.\n> Outsert input there.\n'
Beispiel #16
0
def test_mail_quote_one_line():
    assert mail_quote('Insert output here.\n') == '> Insert output here.\n'