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)
| 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 |