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

Method test_ValidHTTP

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

Source from the content-addressed store, hash-verified

260 del self.repos
261
262 def test_ValidHTTP(self):
263 scheme, netloc, upath, pms, qry, frg = urlparse(valid_httpurl())
264 local_path = os.path.join(self.repos._destpath, netloc,
265 upath.strip(os.sep).strip('/'))
266 filepath = self.repos.abspath(valid_httpfile())
267 assert_equal(local_path, filepath)
268
269 def test_sandboxing(self):
270 tmp_path = lambda x: os.path.abspath(self.repos.abspath(x))

Callers 1

test_windows_os_sepMethod · 0.95

Calls 6

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

Tested by

no test coverage detected