'Test the keyword filter strings with RVKCs.'

def test_pattern_matching_keys(self):

    cl = self._test_header['DP1.AXIS.*']
    assert isinstance(cl, fits.Header)
    assert ([str(c).strip() for c in cl.cards] == ["DP1                    =    'AXIS.1:    1'", "DP1                    =    'AXIS.2:    2'"])
    cl = self._test_header['DP1.N*']
    assert ([str(c).strip() for c in cl.cards] == ["DP1                    =    'NAXIS:    2'", "DP1                    =    'NAUX:    2'"])
    cl = self._test_header['DP1.AUX...']
    assert ([str(c).strip() for c in cl.cards] == ["DP1                    =    'AUX.1.COEFF.0:    0'", "DP1                    =    'AUX.1.POWER.0:    1'", "DP1                    =    'AUX.1.COEFF.1:    0.00048828125'", "DP1                    =    'AUX.1.POWER.1:    1'"])
    cl = self._test_header['DP?.NAXIS']
    assert ([str(c).strip() for c in cl.cards] == ["DP1                    =    'NAXIS:    2'"])
    cl = self._test_header['DP1.A*S.*']
    assert ([str(c).strip() for c in cl.cards] == ["DP1                    =    'AXIS.1:    1'", "DP1                    =    'AXIS.2:    2'"])
