'Test that Card constructor allows illegal characters in the keyword,
but creates a HIERARCH card.'

def test_illegal_characters_in_key(self):

    with catch_warnings() as w:
        c = fits.Card('abc+', 9)
    assert (len(w) == 1)
    assert (c.image == _pad('HIERARCH    abc+    =                                                                                9'))
