'Test selecting a subsection of a header via wildcard matching.'

def test_wildcard_slice(self):

    header = fits.Header([('ABC', 0), ('DEF', 1), ('ABD', 2)])
    newheader = header['AB*']
    assert (len(newheader) == 2)
    assert (newheader[0] == 0)
    assert (newheader[1] == 2)
