'Regression test for issue where wildcards did not work on keywords
containing hyphens.'

def test_wildcard_with_hyphen(self):

    header = fits.Header([('DATE', 1), ('DATE-OBS', 2), ('DATE-FOO', 3)])
    assert (len(header['DATE*']) == 3)
    assert (len(header['DATE?*']) == 2)
    assert (len(header['DATE-*']) == 2)
