def test_get_convolution(): ''' Check whether convolutions are retrieved appropriately. ''' assert_raises(KeyError, get_convolution, 'fictional_hrf') conv1 = get_convolution('gamma', n=5) conv2 = gamma(n=5) assert_array_equal(conv1, conv2)
def test_gamma(): duration = 10 hz = 10 conv = gamma(duration=duration, hz=hz) assert_equal(len(conv), duration*hz)