'Test _warn_on_keychains.'

@pytest.mark.parametrize('warn_on_keychains', [True, False])
def test_warn_on_keychains(self, caplog, warn_on_keychains):

    kp = basekeyparser.BaseKeyParser(0, supports_count=False, supports_chains=False)
    kp._warn_on_keychains = warn_on_keychains
    with caplog.at_level(logging.WARNING):
        kp.read_config('normal')
    assert (bool(caplog.records) == warn_on_keychains)
