(self)
| 27 | reopen = 1 # Tells whether the file has to be reopened on each test or not |
| 28 | |
| 29 | def setUp(self): |
| 30 | super().setUp() |
| 31 | |
| 32 | # Create an instance of an HDF5 Table |
| 33 | self.rootgroup = self.h5file.root |
| 34 | self.populateFile() |
| 35 | if self.reopen: |
| 36 | # Close the file |
| 37 | self.h5file.close() |
| 38 | |
| 39 | def populateFile(self): |
| 40 | group = self.rootgroup |