def METHOD_NAME(self):
    """
    Tests the kernels implemented in C against their numpy counterpart.
    """
    x = np.linspace(-5, 5, 11)
    values = calculate_lanczos_kernel(x, 5, "hanning")
    np.testing.assert_allclose(
        values["only_sinc"], np.sinc(x), atol=1E-9)
    np.testing.assert_allclose(
        values["only_taper"], np.hanning(len(x)), atol=1E-9)
    np.testing.assert_allclose(
        values["full_kernel"], np.sinc(x) * np.hanning(len(x)),
        atol=1E-9)
    values = calculate_lanczos_kernel(x, 5, "blackman")
    np.testing.assert_allclose(
        values["only_sinc"], np.sinc(x), atol=1E-9)
    np.testing.assert_allclose(
        values["only_taper"], np.blackman(len(x)), atol=1E-9)
    np.testing.assert_allclose(
        values["full_kernel"], np.sinc(x) * np.blackman(len(x)),
        atol=1E-9)
    values = calculate_lanczos_kernel(x, 5, "lanczos")
    np.testing.assert_allclose(
        values["only_sinc"], np.sinc(x), atol=1E-9)
    np.testing.assert_allclose(
        values["only_taper"], np.sinc(x / 5.0), atol=1E-9)
    np.testing.assert_allclose(
        values["full_kernel"], np.sinc(x) * np.sinc(x / 5.0),
        atol=1E-9)