MCPcopy Index your code
hub / github.com/numpy/numpy / test_InvalidFile

Method test_InvalidFile

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

Source from the content-addressed store, hash-verified

207 assert_(invalidhttp != ds.abspath(valid_httpurl()))
208
209 def test_InvalidFile(self, tmp_path):
210 ds = datasource.DataSource(tmp_path)
211 invalidfile = valid_textfile(tmp_path)
212 tmpfile = valid_textfile(tmp_path)
213 tmpfilename = os.path.split(tmpfile)[-1]
214 # Test with filename only
215 assert_(invalidfile != ds.abspath(tmpfilename))
216 # Test filename with complete path
217 assert_(invalidfile != ds.abspath(tmpfile))
218
219 def test_sandboxing(self, tmp_path):
220 ds = datasource.DataSource(tmp_path)

Callers 1

test_windows_os_sepMethod · 0.95

Calls 4

abspathMethod · 0.95
assert_Function · 0.90
valid_textfileFunction · 0.85
splitMethod · 0.80

Tested by

no test coverage detected