HDF writeing is correctly tested
This commit is contained in:
@@ -144,7 +144,7 @@ class TestADCResult(unittest.TestCase):
|
||||
# read back data with h5dump utility (apt-get -y install hdf5-tools)
|
||||
h5dump = subprocess.run(["h5dump", "-d", "/name/adc_data", "test.hdf5"], capture_output=True)
|
||||
content = h5dump.stdout.decode("utf-8")
|
||||
with open("h5dump1_adc_data.ascii", "r") as f:
|
||||
with open("tests/h5dump1_adc_data.ascii", "r") as f:
|
||||
expected = f.read()
|
||||
self.assertEqual(content, expected)
|
||||
os.unlink("test.hdf5")
|
||||
|
||||
Reference in New Issue
Block a user