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

Method test_InvalidFile

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

Source from the content-addressed store, hash-verified

215 assert_(invalidhttp != self.ds.abspath(valid_httpurl()))
216
217 def test_InvalidFile(self):
218 invalidfile = valid_textfile(self.tmpdir)
219 tmpfile = valid_textfile(self.tmpdir)
220 tmpfilename = os.path.split(tmpfile)[-1]
221 # Test with filename only
222 assert_(invalidfile != self.ds.abspath(tmpfilename))
223 # Test filename with complete path
224 assert_(invalidfile != self.ds.abspath(tmpfile))
225
226 def test_sandboxing(self):
227 tmpfile = valid_textfile(self.tmpdir)

Callers 1

test_windows_os_sepMethod · 0.95

Calls 4

assert_Function · 0.90
valid_textfileFunction · 0.85
splitMethod · 0.45
abspathMethod · 0.45

Tested by

no test coverage detected