"""
Tests functions in smoothing.py
Run with:
    nosetests test_smoothing.py
"""	

# Test method .smooth()
smooth1, smooth2 = subtest_runtest1.smooth(0), subtest_runtest1.smooth(1, 5)
smooth3 = subtest_runtest1.smooth(2, 0.25)
assert [smooth1.max(), smooth1.shape, smooth1.sum()] == [0, (3, 3, 3), 0]
assert [smooth2.max(), smooth2.shape, smooth2.sum()] == [1, (3, 3, 3), 27]
assert [smooth3.max(), smooth3.shape, smooth3.sum()] == [8, (3, 3, 3), 108]
assert [smooth1.std(), smooth2.std()] == [0, 0]
assert_almost_equal(smooth3.std(), 1.6329931618554521)
@@ -1,86 +1,544 @@
 %22%22%22%0A
-Tests functions in smoothing.py%0ARun with:%0A    nosetests test_smoothing.py%0A%22%22%22%09
+==================Test file for smoothing.py======================%0A%0ATest convolution module, hrf function and convolve function%0A%0ARun with:%0A%09%09nosetests nosetests code/tests/test_smoothing.py%0A%0A%0A%22%22%22%0A%0Afrom __future__ import absolute_import, division, print_function%0Afrom nose.tools import assert_equal%0Afrom numpy.testing import assert_almost_equal, assert_array_equal%0Aimport numpy as np%0Aimport sys%0A%0Asys.path.append(%22code/utils%22)%0Afrom smoothing import *%0Aimport make_class%0A%0Asubtest_runtest1 = make_class.run(%22test%22, %22001%22, filtered_data=True)
 %0A%0A# 

Add seperate test function for smoothing.py