

def testCookGroup(self):
    self.addComponent('testcase:runtime', '1.0')
    self.addCollection('testcase', '1.0', [':runtime'])
    fingerprint = '95B457D16843B21EA3FC73BBC7C32FC1F94E405E'
    signatureKey = self.cfg.signatureKey
    try:
        self.cfg.signatureKey = fingerprint
        grp = self.build(testGroup, 'GroupTest')
        self.assertFalse((not grp.getSigs().digitalSigs.freeze()), 'Group was not signed when cooked')
        self.assertFalse((grp.verifyDigitalSignatures() != (openpgpfile.TRUST_TRUSTED, [], set())), 'Bad digital signature for gooked group')
    finally:
        self.cfg.signatureKey = signatureKey

dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/sigtest.py SigTest.testCookGroup/original