Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
f2d0f72a
Commit
f2d0f72a
authored
Apr 18, 2017
by
Paul McCarthy
Browse files
Grr, more fixes to VolumeLabels.save test
parent
c327cef3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_volumelabels.py
View file @
f2d0f72a
...
...
@@ -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
()
==
exp
ected
.
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
()
==
exp
ected
.
strip
()
assert
f
.
read
().
strip
()
==
exp
.
strip
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment