'Tests inserting a Simple GroupsHDU to an empty HDUList.'

def test_insert_groupshdu_to_empty_list(self):

    hdul = fits.HDUList()
    hdu = fits.GroupsHDU()
    hdul.insert(0, hdu)
    info = [(0, 'PRIMARY', 1, 'GroupsHDU', 8, (), '', '1    Groups        0    Parameters')]
    assert (hdul.info(output=False) == info)
    hdul.writeto(self.temp('test-insert.fits'))
    assert (fits.info(self.temp('test-insert.fits'), output=False) == info)
