Skip to content

Commit ce41ee5

Browse files
committed
add dataless test
1 parent 3ba1394 commit ce41ee5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/iris/tests/unit/data_manager/test_DataManager.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,17 @@ def test_lazy_with_lazy__dtype_failure(self):
110110
dm2 = DataManager(as_lazy_data(self.real_array).astype(int))
111111
self.assertFalse(dm1 == dm2)
112112

113-
def test_none(self):
113+
def test_dataless(self):
114114
dm1 = DataManager(data=None, shape=(1,))
115115
dm2 = DataManager(data=None, shape=(1,))
116116
self.assertTrue(dm1 == dm2)
117117

118-
def test_none_with_real(self):
118+
def test_dataless_failure(self):
119+
dm1 = DataManager(data=None, shape=(1,))
120+
dm2 = DataManager(data=None, shape=(2,))
121+
self.assertTrue(dm1 != dm2)
122+
123+
def test_dataless_with_real(self):
119124
dm1 = DataManager(data=None, shape=(1,))
120125
dm2 = DataManager(self.real_array)
121126
self.assertFalse(dm1 == dm2)

0 commit comments

Comments
 (0)