Hello! We are running our annual fundraising. Please consider making a donation if you value this freely available service or want to support people around the world working towards liberatory social change. https://riseup.net/donate.

Commit 98aaf50e authored by simonft's avatar simonft
Browse files

add test for signing one's own key

parent 450914b2
......@@ -288,6 +288,14 @@ this duplicates tests from the gpg code, but is necessary to test later function
self.assertGreaterEqual(len(self.ui.signed_keys), 1)
def test_sign_own_key(self):
"""Test that signing a user's own key fails"""
self.ui.pattern = '96F47C6A'
self.assertEquals(len(self.ui.signed_keys), 0)
self.ui.pattern = '7B75921E'
def test_gpg_conf(self):
"""test if gpg.conf default-key works"""
# this fails with GnuPG 2.1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment