def testCookRedirect(self):
        from conary_test.redirecttest import packageRecipe, redirectBaseRecipe, \
             redirectRecipe

        self.build(packageRecipe, "testRecipe")
        self.build(redirectBaseRecipe, "testRedirect")

        fingerprint = '95B457D16843B21EA3FC73BBC7C32FC1F94E405E'
        signatureKey = self.cfg.signatureKey
        try:
            self.cfg.signatureKey = fingerprint
            pkg = self.build(redirectRecipe, "testRedirect")
            self.assertFalse(not pkg.getSigs().digitalSigs.freeze(),
                        "Redirect was not signed when cooked")

            self.assertFalse(pkg.verifyDigitalSignatures() !=
                    (openpgpfile.TRUST_TRUSTED, [], set()),
                    "Bad digital signature for cooked redirect")
        finally:
            self.cfg.signatureKey = signatureKey
dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/sigtest.py/SigTest.testCookRedirect/original