

def testSignTroveExpiration(self):
    fingerprint = '7CCD34B5C5D9CD1F637F6743D4F8F127C267B79D'
    repos = self.openRepository()
    repos.addNewAsciiPGPKey(self.cfg.buildLabel, 'test', unexpiredKey)
    self.addQuickTestComponent('test:doc', '1.0-1-1')
    self.cfg.signatureKey = fingerprint
    signtrove.signTroves(self.cfg, ['test:doc'])
    fingerprint = '69E3912FA8DDD94EDF172D4BF7C542A9DA44E4BD'
    repos.addNewAsciiPGPKey(self.cfg.buildLabel, 'test', unexpiredKey)
    self.cfg.signatureKey = fingerprint
    self.assertRaises(errors.DigitalSignatureError, signtrove.signTroves, self.cfg, ['test:doc'])

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