MCPcopy Create free account
hub / github.com/numpy/numpy / test_ValidHTTP

Method test_ValidHTTP

numpy/lib/tests/test__datasource.py:197–201  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

195 del self.ds
196
197 def test_ValidHTTP(self):
198 scheme, netloc, upath, pms, qry, frg = urlparse(valid_httpurl())
199 local_path = os.path.join(self.tmpdir, netloc,
200 upath.strip(os.sep).strip('/'))
201 assert_equal(local_path, self.ds.abspath(valid_httpurl()))
202
203 def test_ValidFile(self):
204 tmpfile = valid_textfile(self.tmpdir)

Callers 1

test_windows_os_sepMethod · 0.95

Calls 5

assert_equalFunction · 0.90
valid_httpurlFunction · 0.85
stripMethod · 0.80
joinMethod · 0.45
abspathMethod · 0.45

Tested by

no test coverage detected