File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ def test_load_dataarray1():
241
241
me = img .darrays [0 ].meta
242
242
assert 'AnatomicalStructurePrimary' in me
243
243
assert 'AnatomicalStructureSecondary' in me
244
- me ['AnatomicalStructurePrimary' ] == 'CortexLeft'
244
+ assert me ['AnatomicalStructurePrimary' ] == 'CortexLeft'
245
245
assert_array_almost_equal (img .darrays [0 ].coordsys .xform , np .eye (4 , 4 ))
246
246
assert xform_codes .niistring [img .darrays [0 ].coordsys .dataspace ] == 'NIFTI_XFORM_TALAIRACH'
247
247
assert xform_codes .niistring [img .darrays [0 ].coordsys .xformspace ] == 'NIFTI_XFORM_TALAIRACH'
@@ -279,7 +279,7 @@ def test_load_dataarray4():
279
279
def test_dataarray5 ():
280
280
img5 = load (DATA_FILE5 )
281
281
for da in img5 .darrays :
282
- gifti_endian_codes .byteorder [da .endian ] == 'little'
282
+ assert gifti_endian_codes .byteorder [da .endian ] == 'little'
283
283
assert_array_almost_equal (img5 .darrays [0 ].data , DATA_FILE5_darr1 )
284
284
assert_array_almost_equal (img5 .darrays [1 ].data , DATA_FILE5_darr2 )
285
285
# Round trip tested below
Original file line number Diff line number Diff line change @@ -431,17 +431,17 @@ def test_DeterministicGzipFile_fileobj():
431
431
with open ('test.gz' , 'wb' ) as fobj :
432
432
with DeterministicGzipFile (filename = '' , mode = 'wb' , fileobj = fobj ) as gzobj :
433
433
gzobj .write (msg )
434
- md5sum ('test.gz' ) == ref_chksum
434
+ assert md5sum ('test.gz' ) == ref_chksum
435
435
436
436
with open ('test.gz' , 'wb' ) as fobj :
437
437
with DeterministicGzipFile (fileobj = fobj , mode = 'wb' ) as gzobj :
438
438
gzobj .write (msg )
439
- md5sum ('test.gz' ) == ref_chksum
439
+ assert md5sum ('test.gz' ) == ref_chksum
440
440
441
441
with open ('test.gz' , 'wb' ) as fobj :
442
442
with DeterministicGzipFile (filename = 'test.gz' , mode = 'wb' , fileobj = fobj ) as gzobj :
443
443
gzobj .write (msg )
444
- md5sum ('test.gz' ) == ref_chksum
444
+ assert md5sum ('test.gz' ) == ref_chksum
445
445
446
446
447
447
def test_bitwise_determinism ():
You can’t perform that action at this time.
0 commit comments