Checking opening of an existing file.
(self)
| 178 | self.assertEqual(title, "Array example") |
| 179 | |
| 180 | def test01_open_file_pathlib(self): |
| 181 | """Checking opening of an existing file.""" |
| 182 | self.h5file.close() |
| 183 | h5fname = Path(self.h5fname) |
| 184 | with tables.open_file(h5fname) as h5file: |
| 185 | title = h5file.root.array.get_attr("TITLE") |
| 186 | self.assertEqual(title, "Array example") |
| 187 | |
| 188 | def test02_appendFile(self): |
| 189 | """Checking appending objects to an existing file.""" |