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

Method test_ValidFile

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

Source from the content-addressed store, hash-verified

171 assert_equal(self.ds.exists(invalid_httpurl()), False)
172
173 def test_ValidFile(self):
174 # Test valid file in destpath
175 tmpfile = valid_textfile(self.tmpdir)
176 assert_(self.ds.exists(tmpfile))
177 # Test valid local file not in destpath
178 localdir = mkdtemp()
179 tmpfile = valid_textfile(localdir)
180 assert_(self.ds.exists(tmpfile))
181 rmtree(localdir)
182
183 def test_InvalidFile(self):
184 tmpfile = invalid_textfile(self.tmpdir)

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
valid_textfileFunction · 0.85
existsMethod · 0.45

Tested by

no test coverage detected