'Test that long Card keywords are allowed, but with a warning'

def test_keyword_too_long(self):

    with catch_warnings():
        warnings.simplefilter('error')
        pytest.raises(UserWarning, fits.Card, 'abcdefghi', 'long')
