MCPcopy Index your code
hub / github.com/python/cpython / test_ftp

Method test_ftp

Lib/test/test_urllib2net.py:140–148  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138
139 @support.requires_resource('walltime')
140 def test_ftp(self):
141 # Testing the same URL twice exercises the caching in CacheFTPHandler
142 urls = [
143 'ftp://www.pythontest.net/README',
144 'ftp://www.pythontest.net/README',
145 ('ftp://www.pythontest.net/non-existent-file',
146 None, urllib.error.URLError),
147 ]
148 self._test_urls(urls, self._extra_handlers())
149
150 @support.requires_resource('walltime')
151 @unittest.skipIf(sysconfig.get_platform() == 'linux-ppc64le',

Callers

nothing calls this directly

Calls 2

_test_urlsMethod · 0.95
_extra_handlersMethod · 0.95

Tested by

no test coverage detected