diff options
Diffstat (limited to 'numpy/lib/tests/test_twodim_base.py')
-rw-r--r-- | numpy/lib/tests/test_twodim_base.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/numpy/lib/tests/test_twodim_base.py b/numpy/lib/tests/test_twodim_base.py index 92ddf5b34..3a9e8df80 100644 --- a/numpy/lib/tests/test_twodim_base.py +++ b/numpy/lib/tests/test_twodim_base.py @@ -17,7 +17,7 @@ def get_mat(n): data = add.outer(data,data) return data -class test_eye(NumpyTestCase): +class TestEye(NumpyTestCase): def check_basic(self): assert_equal(eye(4),array([[1,0,0,0], [0,1,0,0], @@ -55,7 +55,7 @@ class test_eye(NumpyTestCase): [1,0,0], [0,1,0]])) -class test_diag(NumpyTestCase): +class TestDiag(NumpyTestCase): def check_vector(self): vals = (100*arange(5)).astype('l') b = zeros((5,5)) @@ -84,7 +84,7 @@ class test_diag(NumpyTestCase): b[k] = vals[k+2,k] assert_equal(diag(vals,-2),b[:3]) -class test_fliplr(NumpyTestCase): +class TestFliplr(NumpyTestCase): def check_basic(self): self.failUnlessRaises(ValueError, fliplr, ones(4)) a = get_mat(4) @@ -96,7 +96,7 @@ class test_fliplr(NumpyTestCase): [5,4,3]] assert_equal(fliplr(a),b) -class test_flipud(NumpyTestCase): +class TestFlipud(NumpyTestCase): def check_basic(self): a = get_mat(4) b = a[::-1,:] @@ -107,7 +107,7 @@ class test_flipud(NumpyTestCase): [0,1,2]] assert_equal(flipud(a),b) -class test_rot90(NumpyTestCase): +class TestRot90(NumpyTestCase): def check_basic(self): self.failUnlessRaises(ValueError, rot90, ones(4)) @@ -137,7 +137,7 @@ class test_rot90(NumpyTestCase): a = ones((50,40,3)) assert_equal(rot90(a).shape,(40,50,3)) -class test_histogram2d(NumpyTestCase): +class TestHistogram2d(NumpyTestCase): def check_simple(self): x = array([ 0.41702200, 0.72032449, 0.00011437481, 0.302332573, 0.146755891]) y = array([ 0.09233859, 0.18626021, 0.34556073, 0.39676747, 0.53881673]) @@ -188,7 +188,7 @@ class test_histogram2d(NumpyTestCase): H, xed, yed = histogram2d(r, r, (4, 5), range=([0,1], [0,1])) assert_array_equal(H, 0) -class test_tri(NumpyTestCase): +class TestTri(NumpyTestCase): def test_dtype(self): out = array([[1,0,0], [1,1,0], |