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

Method test_ValidFile

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

Source from the content-addressed store, hash-verified

113 assert_raises(URLError, self.ds._cache, invalid_httpurl())
114
115 def test_ValidFile(self):
116 local_file = valid_textfile(self.tmpdir)
117 fh = self.ds.open(local_file)
118 assert_(fh)
119 fh.close()
120
121 def test_InvalidFile(self):
122 invalid_file = invalid_textfile(self.tmpdir)

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected