def test_get_should_wrap(self): # a 360 dataset field_360 = self.test_data.get_rd('cancm4_tas').get() ss = SpatialSubsetOperation(field_360, wrap=True) self.assertTrue(ss._get_should_wrap_(ss.target)) ss = SpatialSubsetOperation(field_360, wrap=False) self.assertFalse(ss._get_should_wrap_(ss.target)) ss = SpatialSubsetOperation(field_360, wrap=None) self.assertFalse(ss._get_should_wrap_(ss.target)) # wrapped dataset field_360.spatial.wrap() ss = SpatialSubsetOperation(field_360, wrap=True) self.assertFalse(ss._get_should_wrap_(ss.target)) ss = SpatialSubsetOperation(field_360, wrap=False) self.assertFalse(ss._get_should_wrap_(ss.target)) ss = SpatialSubsetOperation(field_360, wrap=None) self.assertFalse(ss._get_should_wrap_(ss.target))