Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_urllibnet.pyo |
³ò h”Rc @ sÈ d d k Z d d k l Z d d k Z d d k Z d d k Z d d k Z d d k Z d e i f d „ ƒ YZ d e i f d „ ƒ YZ d e i f d „ ƒ YZ d „ Z e d j o e ƒ n d S( iÿÿÿÿN( t test_supportt URLTimeoutTestc B s) e Z d Z d „ Z d „ Z d „ Z RS( g $@c C s t i | i ƒ d S( N( t sockett setdefaulttimeoutt TIMEOUT( t self( ( s/ /usr/local/lib/python2.5/test/test_urllibnet.pyt setUp s c C s t i d ƒ d S( N( R R t None( R ( ( s/ /usr/local/lib/python2.5/test/test_urllibnet.pyt tearDown s c C s t i d ƒ } | i ƒ } d S( Ns http://www.python.org/( t urllibt urlopent read( R t ft x( ( s/ /usr/local/lib/python2.5/test/test_urllibnet.pyt testURLread s ( t __name__t __module__R R R R ( ( ( s/ /usr/local/lib/python2.5/test/test_urllibnet.pyR s t urlopenNetworkTestsc B sD e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s5 Tests urllib.urlopen using the network. These tests are not exhaustive. Assuming that testing using files does a good job overall of some of the basic interface features. There are no tests exercising the optional 'data' and 'proxies' arguments. No tests for transparent redirection have been written. setUp is not used for always constructing a connection to http://www.python.org/ since there a few tests that don't use that address and making a connection is expensive enough to warrant minimizing unneeded connections. c C si t i d ƒ } x+ d D]# } | i t | | ƒ d | ƒ q Wz | i | i ƒ d ƒ Wd | i ƒ Xd S( Ns http://www.python.org/R t readlinet readlinest filenot closet infot geturls3 object returned from urlopen lacks the %s attributes calling 'read' failed( s reads readlines readliness filenos closes infos geturl( R R t assert_t hasattrR R ( R t open_urlt attr( ( s/ /usr/local/lib/python2.5/test/test_urllibnet.pyt test_basic) s c C sc t i d ƒ } zB | i t | i ƒ t ƒ d ƒ | i t | i ƒ t ƒ d ƒ Wd | i ƒ Xd S( Ns http://www.python.org/s readline did not return a strings readlines did not return a list( R R R t isinstanceR t basestringR t listR ( R R ( ( s/ /usr/local/lib/python2.5/test/test_urllibnet.pyt test_readlines5 s c C sc t i d ƒ } z | i ƒ } Wd | i ƒ | i t | t i ƒ d ƒ | i | i ƒ d ƒ Xd S( Ns http://www.python.org/sA object returned by 'info' is not an instance of mimetools.Messaget html( R R R R R R t mimetoolst Messaget assertEqualt getsubtype( R R t info_obj( ( s/ /usr/local/lib/python2.5/test/test_urllibnet.pyt test_info@ s c C sG d } t i | ƒ } z | i ƒ } Wd | i ƒ X| i | | ƒ d S( Ns http://www.python.org/( R R R R R$ ( R t URLR t gotten_url( ( s/ /usr/local/lib/python2.5/test/test_urllibnet.pyt test_geturlL s c C s t i d j p t t d ƒ o d Sn t i d ƒ } | i ƒ } t i | ƒ } z | i | i ƒ d ƒ Wd | i ƒ Xd S( Nt win32t fdopens http://www.python.org/s<