def test_fresnel_filter(self):
    mat = np.random.rand(64, 64)
    mat1 = filt.fresnel_filter(mat, 10, dim=1)
    mat2 = filt.fresnel_filter(mat, 10, dim=2)
    num1 = np.sum(np.abs((mat - mat1)))
    num2 = np.sum(np.abs((mat - mat2)))
    num3 = np.sum(np.abs((mat1 - mat2)))
    self.assertTrue(((num1 > self.eps) and (num2 > self.eps) and (num3 > self.eps)))
def test_fresnel_filter(self):
    mat = np.random.rand(64, 64)
    mat1 = filt.fresnel_filter(mat, 10, dim=1)
    mat2 = filt.fresnel_filter(mat, 10, dim=2)
    num1 = np.sum(np.abs((mat - mat1)))
    num2 = np.sum(np.abs((mat - mat2)))
    num3 = np.sum(np.abs((mat1 - mat2)))
    self.assertTrue(((num1 > self.eps) and (num2 > self.eps) and (num3 > self.eps)))