#NEWLINE# def test_lazy_http( ) : #NEWLINE# #INDENT# IMG_URL = 'http://lavr.github.io/python-emails/tests/python-logo.gif' #NEWLINE# f = emails . store . LazyHTTPFile ( uri = IMG_URL ) #NEWLINE# assert ( f . filename == 'python-logo.gif' ) #NEWLINE# assert ( IMG_URL . content_disposition == 'attachment' ) #NEWLINE# assert ( len ( f . data ) == 2549 )