[python-dtcwt] 57/497: remove unused test file

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:05:49 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.

commit d7946ef4c672b4749f5d56f932201a36d5c82c43
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date:   Thu Aug 8 00:32:22 2013 +0100

    remove unused test file
---
 tests/colifilt.py | 37 -------------------------------------
 1 file changed, 37 deletions(-)

diff --git a/tests/colifilt.py b/tests/colifilt.py
deleted file mode 100644
index 20f5071..0000000
--- a/tests/colifilt.py
+++ /dev/null
@@ -1,37 +0,0 @@
-import os
-
-import numpy as np
-from dtcwt import coldfilt
-
-from nose.tools import raises
-
-def setup():
-    global lena
-    lena = np.load(os.path.join(os.path.dirname(__file__), 'lena.npz'))['lena']
-
-def test_lena_loaded():
-    assert lena.shape == (512, 512)
-    assert lena.min() >= 0
-    assert lena.max() <= 1
-    assert lena.dtype == np.float32
-
- at raises(ValueError)
-def test_odd_filter_ha():
-    coldfilt(lena, (-1,2,-1), (-1, 1))
-
- at raises(ValueError)
-def test_odd_filter_hb():
-    coldfilt(lena, (-1,1), (-1,2,-1))
-
- at raises(ValueError)
-def test_bad_input_size():
-    coldfilt(lena[:511,:], (-1,1), (1,-1))
-
-def test_good_input_size():
-    coldfilt(lena[:,:511], (-1,1), (1,-1))
-
-def test_output_size():
-    Y = coldfilt(lena, (-1,1), (1,-1))
-    assert Y.shape == (lena.shape[0]/2, lena.shape[1])
-
-# vim:sw=4:sts=4:et

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git



More information about the debian-science-commits mailing list