'Regression test for https://aeon.stsci.edu/ssb/trac/pyfits/ticket/184
Ensures that looking up a RVKC by keyword only (without the
field-specifier) in a header returns the full string value of that card
without parsing it as a RVKC.  Also ensures that a full field-specifier
is required to match a RVKC--a partial field-specifier that doesn\'t
explicitly match any record-valued keyword should result in a KeyError.'

def test_overly_aggressive_rvkc_lookup(self):

    c1 = fits.Card.fromstring("FOO                    =    'AXIS.1:    2'")
    c2 = fits.Card.fromstring("FOO                    =    'AXIS.2:    4'")
    h = fits.Header([c1, c2])
    assert (h['FOO'] == 'AXIS.1:    2')
    assert (h[('FOO', 1)] == 'AXIS.2:    4')
    assert (h['FOO.AXIS.1'] == 2.0)
    assert (h['FOO.AXIS.2'] == 4.0)
    assert ('FOO.AXIS' not in h)
    assert ('FOO.AXIS.' not in h)
    assert ('FOO.' not in h)
    pytest.raises(KeyError, (lambda : h['FOO.AXIS']))
    pytest.raises(KeyError, (lambda : h['FOO.AXIS.']))
    pytest.raises(KeyError, (lambda : h['FOO.']))
