

def testSelectSigKey(self):
    fingerprints = ['F7440D78FE813C882212C2BF8AC2828190B1E477', 'BOGUS', '95B457D16843B21EA3FC73BBC7C32FC1F94E405E']
    cfg = conarycfg.ConaryConfiguration()
    cfg.configLine(('signatureKey %s' % fingerprints[0]))
    cfg.configLine(('signatureKeyMap .*\\.example\\.com %s' % fingerprints[1]))
    cfg.configLine(('signatureKeyMap conary\\.example\\.com %s' % fingerprints[2]))
    self.assertFalse((signtrove.selectSignatureKey(fingerprints, 'conary.example.com@rpl:devel') == fingerprints[2]), 'regexp for selectSignatureKey missed first match')
    self.assertFalse((signtrove.selectSignatureKey(cfg, 'WILDLYWRONG') != fingerprints[0]), 'selectSignatureKey invoked signatureKeyMap incorrectly')

dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/sigtest.py SigTest.testSelectSigKey/VarMisuse@79/194 `cfg`->`fingerprints`