...
 
Commits (3)
......@@ -80,6 +80,13 @@ class GPGOpsTestGenCall(unittest.TestCase):
self.gk.gensub(encrypt=True)
self.gk.gensub(authenticate=True)
def test_addrevuid(self):
addtest = "addtest <addtest@example.com>"
self.assertNotIn(addtest, self.gk.uids)
self.gk.adduid(addtest)
self.assertIn(addtest, self.gk.uids)
#self.gk.revokeuid(addtest)
#self.assertIn(addtest+" REVOKED", self.gk.uids)
class GPGOpsTestKey(unittest.TestCase):
......@@ -117,13 +124,6 @@ class GPGOpsTestKey(unittest.TestCase):
'04E8C72E5513A1FB1D925ABA62E94671570D8082 (Authentication)']
self.assertEqual(kl, self.gk.keys)
def test_addrevuid(self):
addtest = "addtest <addtest@example.com>"
self.gk.adduid(addtest)
self.assertIn(addtest, self.gk.uids)
self.gk.revokeuid(addtest)
self.assertIn(addtest+" REVOKED", self.gk.uids)
# Checking signatures doesn't work for some reason
# So we do it manually
def _checkkey(self, keyfile):
......