Module Import alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults vararg kwarg body For NameStore Call NameLoad Num body TryExcept body Return Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Continue ExceptHandler body Raise Raise NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults vararg body Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore TupleLoad Str Str Str Str Str Str Str body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad BinOpMod Str NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str TryFinally body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str TryFinally body Assign NameStore Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryFinally body Assign NameStore Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad TryFinally body Assign NameStore Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Str Str Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults vararg body Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call NameLoad NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr TupleLoad Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A unittest test test_support N/A socket N/A urllib N/A sys N/A os N/A time N/A mimetools N/A N/A test_support import_module mimetools deprecated True _open_with_retry N/A N/A func host N/A args kwargs N/A N/A i N/A range 3 N/A N/A N/A N/A N/A func host args kwargs N/A N/A N/A IOError N/A last_exc N/A N/A N/A N/A N/A N/A last_exc N/A URLTimeoutTest N/A N/A unittest TestCase N/A N/A TIMEOUT 10.0 setUp N/A N/A self N/A N/A N/A N/A N/A socket setdefaulttimeout N/A self TIMEOUT N/A tearDown N/A N/A self N/A N/A N/A N/A N/A socket setdefaulttimeout None N/A testURLread N/A N/A self N/A N/A N/A f N/A _open_with_retry N/A urllib urlopen http://www.example.com/ N/A x N/A N/A f read N/A N/A urlopenNetworkTests N/A N/A unittest TestCase N/A N/A 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.example.com/ since there a few tests that don't use that address
    and making a connection is expensive enough to warrant minimizing unneeded
    connections.

     urlopen N/A N/A self N/A args N/A N/A N/A _open_with_retry N/A urllib urlopen args N/A test_basic N/A N/A self N/A N/A N/A open_url N/A N/A self urlopen http://www.example.com/ N/A attr N/A read readline readlines fileno close info geturl N/A N/A N/A N/A self assertTrue N/A hasattr open_url attr N/A object returned from urlopen lacks the %s attribute attr N/A N/A N/A N/A N/A self assertTrue N/A N/A open_url read calling 'read' failed N/A N/A N/A N/A open_url close N/A test_readlines N/A N/A self N/A N/A N/A open_url N/A N/A self urlopen http://www.example.com/ N/A N/A N/A N/A N/A self assertIsInstance N/A N/A open_url readline basestring readline did not return a string N/A N/A N/A self assertIsInstance N/A N/A open_url readlines list readlines did not return a list N/A N/A N/A N/A open_url close N/A test_info N/A N/A self N/A N/A N/A open_url N/A N/A self urlopen http://www.example.com/ N/A N/A N/A info_obj N/A N/A open_url info N/A N/A N/A N/A open_url close N/A N/A N/A self assertIsInstance info_obj N/A mimetools Message object returned by 'info' is not an instance of mimetools.Message N/A N/A N/A self assertEqual N/A N/A info_obj getsubtype html N/A test_geturl N/A N/A self N/A N/A N/A URL http://www.example.com/ N/A open_url N/A N/A self urlopen URL N/A N/A N/A gotten_url N/A N/A open_url geturl N/A N/A N/A N/A open_url close N/A N/A N/A self assertEqual gotten_url URL N/A test_getcode N/A N/A self N/A N/A N/A URL http://www.example.com/XXXinvalidXXX N/A open_url N/A N/A N/A N/A urllib FancyURLopener open URL N/A N/A N/A code N/A N/A open_url getcode N/A N/A N/A N/A open_url close N/A N/A N/A self assertEqual code 404 N/A test_fileno N/A N/A self N/A N/A N/A open_url N/A N/A self urlopen http://www.example.com/ N/A fd N/A N/A open_url fileno N/A FILE N/A N/A os fdopen fd N/A N/A N/A N/A N/A self assertTrue N/A N/A FILE read reading from file created using fd returned by fileno failed N/A N/A N/A N/A FILE close N/A N/A N/A unittest skipIf N/A N/A sys platform N/A win32 not appropriate for Windows N/A N/A unittest skipUnless N/A hasattr os fdopen os.fdopen not available test_bad_address N/A N/A self N/A N/A N/A bogus_domain sadflkjsasf.i.nvali.d N/A N/A N/A N/A N/A socket gethostbyname bogus_domain N/A N/A N/A N/A socket gaierror N/A N/A N/A N/A N/A N/A self skipTest N/A %r should not resolve for test to work bogus_domain N/A N/A N/A self assertRaises IOError N/A urllib urlopen http://sadflkjsasf.i.nvali.d/ N/A N/A urlretrieveNetworkTests N/A N/A unittest TestCase N/A N/A Tests urllib.urlretrieve using the network. urlretrieve N/A N/A self N/A args N/A N/A N/A _open_with_retry N/A urllib urlretrieve args N/A test_basic N/A N/A self N/A N/A N/A N/A file_location info N/A N/A self urlretrieve http://www.example.com/ N/A N/A N/A self assertTrue N/A N/A N/A os path exists file_location file location returned by urlretrieve is not a valid path N/A FILE N/A file file_location N/A N/A N/A N/A N/A self assertTrue N/A N/A FILE read reading from the file location returned by urlretrieve failed N/A N/A N/A N/A FILE close N/A N/A N/A os unlink file_location N/A test_specified_path N/A N/A self N/A N/A N/A N/A file_location info N/A N/A self urlretrieve http://www.example.com/ N/A test_support TESTFN N/A N/A N/A self assertEqual file_location N/A test_support TESTFN N/A N/A N/A self assertTrue N/A N/A N/A os path exists file_location N/A FILE N/A file file_location N/A N/A N/A N/A N/A self assertTrue N/A N/A FILE read reading from temporary file failed N/A N/A N/A N/A FILE close N/A N/A N/A os unlink file_location N/A test_header N/A N/A self N/A N/A N/A N/A file_location header N/A N/A self urlretrieve http://www.example.com/ N/A N/A N/A os unlink file_location N/A N/A N/A self assertIsInstance header N/A mimetools Message header is not an instance of mimetools.Message N/A test_data_header N/A N/A self N/A N/A N/A logo http://www.example.com/ N/A N/A file_location fileheaders N/A N/A self urlretrieve logo N/A N/A N/A os unlink file_location N/A datevalue N/A N/A fileheaders getheader Date N/A dateformat %a, %d %b %Y %H:%M:%S GMT N/A N/A N/A N/A N/A time strptime datevalue dateformat N/A N/A N/A ValueError N/A N/A N/A N/A self fail Date value not in %r format dateformat N/A N/A test_main N/A N/A N/A N/A N/A N/A N/A test_support requires network N/A N/A N/A test_support check_py3k_warnings N/A urllib.urlopen.. has been removed DeprecationWarning N/A N/A N/A N/A test_support run_unittest URLTimeoutTest urlopenNetworkTests urlretrieveNetworkTests N/A N/A N/A __name__ __main__ N/A N/A N/A test_main