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

Method setUp

tables/nodes/tests/test_filenode.py:78–90  ·  view source on GitHub ↗

setUp() -> None This method sets the following instance attributes: * 'h5fname', the name of the temporary HDF5 file * 'h5file', the writable, temporary HDF5 file with a '/test' node * 'fnode', the closed file node in '/test'

(self)

Source from the content-addressed store, hash-verified

76 """Tests calling several methods on a closed file."""
77
78 def setUp(self):
79 """setUp() -> None
80
81 This method sets the following instance attributes:
82 * 'h5fname', the name of the temporary HDF5 file
83 * 'h5file', the writable, temporary HDF5 file with a '/test' node
84 * 'fnode', the closed file node in '/test'
85
86 """
87
88 super().setUp()
89 self.fnode = filenode.new_node(self.h5file, where="/", name="test")
90 self.fnode.close()
91
92 def tearDown(self):
93 """tearDown() -> None

Callers

nothing calls this directly

Calls 2

setUpMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected