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

Method test_ValidFile

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

Source from the content-addressed store, hash-verified

201 assert_equal(local_path, self.ds.abspath(valid_httpurl()))
202
203 def test_ValidFile(self):
204 tmpfile = valid_textfile(self.tmpdir)
205 tmpfilename = os.path.split(tmpfile)[-1]
206 # Test with filename only
207 assert_equal(tmpfile, self.ds.abspath(tmpfilename))
208 # Test filename with complete path
209 assert_equal(tmpfile, self.ds.abspath(tmpfile))
210
211 def test_InvalidHTTP(self):
212 scheme, netloc, upath, pms, qry, frg = urlparse(invalid_httpurl())

Callers 1

test_windows_os_sepMethod · 0.95

Calls 4

assert_equalFunction · 0.90
valid_textfileFunction · 0.85
splitMethod · 0.45
abspathMethod · 0.45

Tested by

no test coverage detected