'Regression test for https://github.com/astropy/astropy/issues/6399'

def test_scale_with_explicit_bzero_bscale(self):

    hdu1 = fits.PrimaryHDU()
    hdu2 = fits.ImageHDU(np.random.rand(100, 100))
    hdu2.scale(type='uint8', bscale=1, bzero=0)
