'Test that over-long cards truncate the comment'

def test_card_image_constructed_too_long(self):

    with ignore_warnings():
        c = fits.Card('abc', 9, ('abcde' * 20))
        assert (str(c) == 'ABC                    =                                                                                9    /    abcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeab')
        c = fits.Card('abc', ('a' * 68), 'abcdefg')
        assert (str(c) == "ABC                    =    '{}'".format(('a' * 68)))
