

def testAddingSigs(self):
    fingerprint = '95B457D16843B21EA3FC73BBC7C32FC1F94E405E'
    keyRing = open(resources.get_path('conary_test', 'archive', 'pubring.gpg'))
    keyData = openpgpfile.exportKey(fingerprint, keyRing)
    keyData.seek(0)
    keyData = keyData.read()
    self.openRepository()
    repos = self.getRepositoryClient(user='test', password='busted')
    self.assertRaises(errors.InsufficientPermission, repos.addNewPGPKey, keyRing.cfg.buildLabel, 'test', keyData)
    self.assertRaises(errors.InsufficientPermission, repos.addNewAsciiPGPKey, self.cfg.buildLabel, 'test', unexpiredKey)

dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/sigtest.py SigTest.testAddingSigs/VarMisuse@89/157 `self`->`keyRing`