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

Method setUp

tables/nodes/tests/test_filenode.py:799–811  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

797 """Tests accessing a file node in a closed PyTables file."""
798
799 def setUp(self):
800 """setUp() -> None
801
802 This method sets the following instance attributes:
803 * 'h5fname', the name of the temporary HDF5 file
804 * 'h5file', the closed HDF5 file with a '/test' node
805 * 'fnode', the writable file node in '/test'
806
807 """
808
809 super().setUp()
810 self.fnode = filenode.new_node(self.h5file, where="/", name="test")
811 self.h5file.close()
812
813 def tearDown(self):
814 """tearDown() -> None

Callers

nothing calls this directly

Calls 2

setUpMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected