Commit f2d0f72a authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Grr, more fixes to VolumeLabels.save test

parent c327cef3
......@@ -346,14 +346,13 @@ def test_save():
# Test saving without dirname
lbls.save(fname)
exp = '.\n{}'.format(expected)
with open(fname, 'rt') as f:
assert f.read().strip() == expected.strip()
assert f.read().strip() == exp.strip()
# And with dirname
lbls.save(fname, 'path/to/analysis.ica')
expected = '{}\n{}'.format(
'path/to/analysis.ica',
expected)
exp = 'path/to/analysis.ica\n{}'.format(expected)
with open(fname, 'rt') as f:
assert f.read().strip() == expected.strip()
assert f.read().strip() == exp.strip()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment