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

Method test01_openFile

tables/tests/test_basics.py:169–178  ·  view source on GitHub ↗

Checking opening of an existing file.

(self)

Source from the content-addressed store, hash-verified

167 shutil.rmtree(temp_dir)
168
169 def test01_openFile(self):
170 """Checking opening of an existing file."""
171
172 # Open the old HDF5 file
173 self._reopen(node_cache_slots=self.node_cache_slots)
174
175 # Get the CLASS attribute of the arr object
176 title = self.h5file.root.array.get_attr("TITLE")
177
178 self.assertEqual(title, "Array example")
179
180 def test01_open_file_pathlib(self):
181 """Checking opening of an existing file."""

Callers

nothing calls this directly

Calls 2

get_attrMethod · 0.80
_reopenMethod · 0.45

Tested by

no test coverage detected