def test_dim_non_monotonic(self): result = _dim_or_aux(self.non_mono, standard_name=self.std_name, units=self.units, attributes=self.attr.copy()) attr = self.attr.copy() del attr['positive'] expected = AuxCoord(self.non_mono, standard_name=self.std_name, units=self.units, attributes=attr) self.assertEqual(result, expected)
def test_dim_monotonic(self): result = _dim_or_aux(self.mono, standard_name=self.std_name, units=self.units, attributes=self.attr.copy()) expected = DimCoord(self.mono, standard_name=self.std_name, units=self.units, attributes=self.attr) self.assertEqual(result, expected)