'Regression test for https://aeon.stsci.edu/ssb/trac/pyfits/ticket/172
Ensures that when fixing a hierarch card it remains a hierarch card.'

def test_fix_hierarch_with_invalid_value(self, capsys):

    c = fits.Card.fromstring('HIERARCH    ESO    DET    CHIP    PXSPACE    =    5e6')
    c.verify('fix')
    assert (str(c) == _pad('HIERARCH    ESO    DET    CHIP    PXSPACE    =    5E6'))
