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

Method test_ValidFile

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

Source from the content-addressed store, hash-verified

110 assert_raises(URLError, ds._cache, invalid_httpurl())
111
112 def test_ValidFile(self, tmp_path):
113 ds = datasource.DataSource(tmp_path)
114 local_file = valid_textfile(tmp_path)
115 fh = ds.open(local_file)
116 assert_(fh)
117 fh.close()
118
119 def test_InvalidFile(self, tmp_path):
120 ds = datasource.DataSource(tmp_path)

Callers

nothing calls this directly

Calls 4

openMethod · 0.95
assert_Function · 0.90
valid_textfileFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected