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

Method setUp

tables/nodes/tests/test_filenode.py:182–194  ·  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 writable file node in '/test'

(self)

Source from the content-addressed store, hash-verified

180 datafname = "test_filenode.dat"
181
182 def setUp(self):
183 """setUp() -> None
184
185 This method sets the following instance attributes:
186 * 'h5fname', the name of the temporary HDF5 file
187 * 'h5file', the writable, temporary HDF5 file with a '/test' node
188 * 'fnode', the writable file node in '/test'
189
190 """
191
192 super().setUp()
193 self.fnode = filenode.new_node(self.h5file, where="/", name="test")
194 self.datafname = test_file(self.datafname)
195
196 def tearDown(self):
197 """tearDown() -> None

Callers

nothing calls this directly

Calls 2

test_fileFunction · 0.85
setUpMethod · 0.45

Tested by

no test coverage detected