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

Method test_InvalidHTTP

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

Source from the content-addressed store, hash-verified

209 assert_equal(tmpfile, self.ds.abspath(tmpfile))
210
211 def test_InvalidHTTP(self):
212 scheme, netloc, upath, pms, qry, frg = urlparse(invalid_httpurl())
213 invalidhttp = os.path.join(self.tmpdir, netloc,
214 upath.strip(os.sep).strip('/'))
215 assert_(invalidhttp != self.ds.abspath(valid_httpurl()))
216
217 def test_InvalidFile(self):
218 invalidfile = valid_textfile(self.tmpdir)

Callers 1

test_windows_os_sepMethod · 0.95

Calls 6

assert_Function · 0.90
invalid_httpurlFunction · 0.85
valid_httpurlFunction · 0.85
stripMethod · 0.80
joinMethod · 0.45
abspathMethod · 0.45

Tested by

no test coverage detected