'Regression test for
https://github.com/spacetelescope/PyFITS/issues/6
Make sure any leading or trailing whitespace around HIERARCH
keywords is stripped from the actual keyword value.'

def test_hierarch_keyword_whitespace(self):

    c = fits.Card.fromstring("HIERARCH        key.META_4                =    'calFileVersion'")
    assert (c.keyword == 'key.META_4')
    assert (c.value == 'calFileVersion')
    assert (c.comment == '')
    c = fits.Card('HIERARCH        key.META_4', 'calFileVersion')
    assert (c.keyword == 'key.META_4')
    assert (c.value == 'calFileVersion')
    assert (c.comment == '')
