

def testInstallSignedTrove(self):
    fingerprint = '95B457D16843B21EA3FC73BBC7C32FC1F94E405E'
    self.addComponent('test:run', '1', fileContents=[('/usr/share/foo1', 'blah')])
    self.addCollection('test', '1', [':run'])
    self.cfg.signatureKey = fingerprint
    self.cfg.quiet = True
    signtrove.signTroves(self.cfg, ['test'])
    self.cfg.pubRing = '/some/keyring'
    openpgpkey.getKeyCache().reset()
    openpgpkey.getKeyCache().setPublicPath(self.cfg.pubRing)
    self.logFilter.add()
    self.updatePkg('test')
    self.logFilter.remove()
    self.logFilter.compare('error: While caching PGP key: Permission denied: /some')

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