def test_bin(input, bin, result):
    # If psf=True, then the image will create a default PSF, and pad its
    #   borders (and thus increase its size) sufficiently to include off-image
    #   regions of half the PSF width on each side. That will, in turn, result
    #   in the image sizes not matching the pre-made output arrays. Because this
    #   test is not related to PSFs in any way, no PSF is created.
    im1 = AstroImage(data=input, psf=False)
    im1.bin(bin[0], bin[1])
    verifyData(im1.hdu.data, result)
def test_convolve(input, kernel, result):
    input_image = AstroImage(data=input, psf=False)
    kernel_image = AstroImage(data=kernel, psf=False)
    input_image.convolve(kernel_image)
    verifyData(input_image.hdu.data, result)