

def testCookPackageCascade(self):
    fingerprint = '95B457D16843B21EA3FC73BBC7C32FC1F94E405E'
    self.makeSourceTrove('testcase', testRecipe)
    v = versions.VersionFromString('/localhost@rpl:linux/1.0-1-1')
    f = deps.parseFlavor('')
    repos = self.openRepository()
    signatureKey = self.cfg.signatureKey
    try:
        self.cfg.signatureKey = fingerprint
        built = self.cookItem(repos, self.cfg, 'testcase', ignoreDeps=True)
        trv = repos.getTrove('testcase:runtime', v, f)
        self.assertFalse((not trv.getSigs().digitalSigs.freeze()), 'Component was not signed when package was cooked')
        self.assertFalse((trv.verifyDigitalSignatures() != (openpgpfile.TRUST_TRUSTED, [], set())), 'Bad digital signature for coponent of cooked package')
    finally:
        self.cfg.signatureKey = signatureKey

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