File tree Expand file tree Collapse file tree 2 files changed +1413
-1
lines changed Expand file tree Collapse file tree 2 files changed +1413
-1
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ def test_urllib_request_ssl_redirect(self):
332
332
# pprint(r.read().decode('utf-8'))
333
333
self .assertTrue (True )
334
334
335
- def test_urllib_request_http (self ):
335
+ def test_moves_urllib_request_http (self ):
336
336
"""
337
337
This site (python-future.org) uses plain http (as of 2014-09-23).
338
338
"""
@@ -343,6 +343,17 @@ def test_urllib_request_http(self):
343
343
data = r .read ()
344
344
self .assertTrue (b'</html>' in data )
345
345
346
+ def test_urllib_request_http (self ):
347
+ """
348
+ This site (python-future.org) uses plain http (as of 2014-09-23).
349
+ """
350
+ import urllib .request as urllib_request
351
+ from pprint import pprint
352
+ URL = 'http://python-future.org'
353
+ r = urllib_request .urlopen (URL )
354
+ data = r .read ()
355
+ self .assertTrue (b'</html>' in data )
356
+
346
357
def test_html_import (self ):
347
358
import html
348
359
import html .entities
You can’t perform that action at this time.
0 commit comments