

def testCookFileset(self):
    from buildtest.filesettest import basicFileset, packageRecipe
    self.buildRecipe(packageRecipe, 'testRecipe')
    fingerprint = '95B457D16843B21EA3FC73BBC7C32FC1F94E405E'
    signatureKey = self.cfg.signatureKey
    try:
        self.cfg.signatureKey = fingerprint
        pkg = self.build(basicFileset, 'basicFileset')
        self.assertFalse((not pkg.getSigs().digitalSigs.freeze()), 'Fileset was not signed when cooked')
        self.assertFalse((pkg.verifyDigitalSignatures() != (openpgpfile.TRUST_TRUSTED, [], set())), 'Bad digital signature for cooked fileset')
    finally:
        self.cfg.signatureKey = signatureKey

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