MCPcopy Create free account
hub / github.com/PyTables/PyTables / test01_open_file_pathlib

Method test01_open_file_pathlib

tables/tests/test_basics.py:180–186  ·  view source on GitHub ↗

Checking opening of an existing file.

(self)

Source from the content-addressed store, hash-verified

178 self.assertEqual(title, "Array example")
179
180 def test01_open_file_pathlib(self):
181 """Checking opening of an existing file."""
182 self.h5file.close()
183 h5fname = Path(self.h5fname)
184 with tables.open_file(h5fname) as h5file:
185 title = h5file.root.array.get_attr("TITLE")
186 self.assertEqual(title, "Array example")
187
188 def test02_appendFile(self):
189 """Checking appending objects to an existing file."""

Callers

nothing calls this directly

Calls 2

get_attrMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected