Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/f/l/flanker-0.4.14/tests/mime/message/fallback/fallback_test.py   flanker(Download)
def bad_python_test():
    message = create.from_python(
        message_from_string("Content-Type:multipart/broken"))
    ok_(message.to_string())
    with closing(StringIO()) as out:
def message_from_python_test():
    message = create.from_python(email.message_from_string(ENCLOSED))
    eq_(2, len(message.parts))
    eq_('multipart/alternative', message.parts[1].enclosed.content_type)
    eq_('multipart/mixed', message.content_type)
def message_headers_test():
    message = create.from_python(email.message_from_string(ENCLOSED))
 
    ok_(message.headers)
    eq_(20, len(message.headers))

src/f/l/flanker-HEAD/tests/mime/message/fallback/fallback_test.py   flanker(Download)
def bad_python_test():
    message = create.from_python(
        message_from_string("Content-Type:multipart/broken"))
    ok_(message.to_string())
    with closing(StringIO()) as out:
def message_from_python_test():
    message = create.from_python(email.message_from_string(ENCLOSED))
    eq_(2, len(message.parts))
    eq_('multipart/alternative', message.parts[1].enclosed.content_type)
    eq_('multipart/mixed', message.content_type)
def message_headers_test():
    message = create.from_python(email.message_from_string(ENCLOSED))
 
    ok_(message.headers)
    eq_(20, len(message.headers))