Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
test
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/test/test_urllib2.pyo
m =5Dc @ s d k Z d k l Z d k Z d k Z d k Z d k Z d k l Z l Z d e i f d YZ d f d YZ d f d YZ d e f d YZ d e i f d YZ d f d YZ d f d YZ d f d YZ d Z d e i f d YZ d Z d e i f d YZ d e i f d YZ d e i f d YZ e d Z e d j o e d e n d S( N( s test_support( s Requests OpenerDirectort TrivialTestsc B s t Z d Z d Z RS( Nc C s | i t t i d t i i t i i d d } | d d !d j o | d } n t i d j o d | i d d } nH t i d j o7 d k } t i | } | i | i d d } n d | } t i | } | i } | i d S( Ns bogus urls \t /i i t :t mact riscoss /.s ./s file://%s( t selft assertRaisest ValueErrort urllib2t urlopent ost patht abspatht __file__t replacet fnamet namet stringt expandt translatet maketranst file_urlt ft readt buft close( R R R R R R ( ( t' /usr/lib/python2.4/test/test_urllib2.pyt test_trivial s ! c C s d d d d g f d d d g f d d d d d d d d g f d d d d g f g } x- | D]% \ } } | i t i | | q^ Wd S( Ns a,b,ct at bt cs path"o,l"og"i"cal, examples path"o,l"og"i"calt examples a, b, "c", "d", "e,f", g, hs "c"s "d"s "e,f"t gt hs a="b\"c", d="e\,f", g="h\\i"s a="b"c"s d="e,f"s g="h\i"( t testsR t listR t assertEqualsR t parse_http_list( R R# R"