@@ -26,7 +26,7 @@ def test_unary(self):
26
26
xr .DataArray ([0 , 0 ], dims = 'x' ),
27
27
xr .Dataset ({'y' : ('x' , [0 , 0 ])})]
28
28
for a in args :
29
- assert_identical (a + 1 , xu .cos (a ))
29
+ self . assertIdentical (a + 1 , xu .cos (a ))
30
30
31
31
def test_binary (self ):
32
32
args = [0 ,
@@ -36,10 +36,10 @@ def test_binary(self):
36
36
xr .Dataset ({'y' : ('x' , [0 , 0 ])})]
37
37
for n , t1 in enumerate (args ):
38
38
for t2 in args [n :]:
39
- assert_identical (t2 + 1 , xu .maximum (t1 , t2 + 1 ))
40
- assert_identical (t2 + 1 , xu .maximum (t2 , t1 + 1 ))
41
- assert_identical (t2 + 1 , xu .maximum (t1 + 1 , t2 ))
42
- assert_identical (t2 + 1 , xu .maximum (t2 + 1 , t1 ))
39
+ self . assertIdentical (t2 + 1 , xu .maximum (t1 , t2 + 1 ))
40
+ self . assertIdentical (t2 + 1 , xu .maximum (t2 , t1 + 1 ))
41
+ self . assertIdentical (t2 + 1 , xu .maximum (t1 + 1 , t2 ))
42
+ self . assertIdentical (t2 + 1 , xu .maximum (t2 + 1 , t1 ))
43
43
44
44
def test_groupby (self ):
45
45
ds = xr .Dataset ({'a' : ('x' , [0 , 0 , 0 ])}, {'c' : ('x' , [0 , 0 , 1 ])})
@@ -65,4 +65,4 @@ def test_groupby(self):
65
65
def test_pickle (self ):
66
66
a = 1.0
67
67
cos_pickled = pickle .loads (pickle .dumps (xu .cos ))
68
- assert_identical (cos_pickled (a ), xu .cos (a ))
68
+ self . assertIdentical (cos_pickled (a ), xu .cos (a ))
0 commit comments