Пример #1
0
def test_unicode_representation():
    m = Message(
        key='1' * 40,
        data={'subject': 'héllô', 'to': ['*****@*****.**']},
    )
    assert m.__str__() == 'héllô to [email protected]'
Пример #2
0
def test_string_representation():
    m = Message(
        key='1' * 40,
        data={'subject': 'hello', 'to': ['*****@*****.**']},
    )
    assert m.__str__() == 'hello to [email protected]'