From e20eaf046535d823bd1de10a9fcfd55f6e09da99 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Sun, 27 May 2018 14:45:13 +0100
Subject: [PATCH] TEST: Update image tests for new ndim and data attributes.

---
 tests/test_image.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/test_image.py b/tests/test_image.py
index 841e1620f..74e4a9a72 100644
--- a/tests/test_image.py
+++ b/tests/test_image.py
@@ -285,11 +285,12 @@ def _test_Image_atts(imgtype):
             i    = fslimage.Image(path)
 
             assert tuple(i.shape)                       == tuple(expdims)
+            assert tuple(i.data.shape)                  == tuple(expdims)
             assert tuple(i.pixdim)                      == tuple(exppixdims)
             assert tuple(i.nibImage.shape)              == tuple(dims)
             assert tuple(i.nibImage.header.get_zooms()) == tuple(pixdims)
 
-            assert i.ndims      == expndims
+            assert i.ndim       == expndims
             assert i.dtype      == dtype
             assert i.name       == op.basename(path)
             assert i.dataSource == fslpath.addExt(path,
@@ -859,8 +860,9 @@ def _test_Image_5D(imgtype):
 
             img = fslimage.Image(path)
 
-            assert img.shape == dims
-            assert img.ndims == 5
+            assert img.shape      == dims
+            assert img.ndim       == 5
+            assert img.data.shape == dims
 
 
 def test_Image_voxToScaledVox_analyze(): _test_Image_voxToScaledVox(0)
-- 
GitLab