c.l.u.f.t.TestImportKeyRing(unittest.TestCase) : class documentation

Part of canonical.launchpad.utilities.ftests.test_gpghandler View In Hierarchy

Tests for keyring imports
Method setUp Get a gpghandler and login
Method tearDown Zero out the gpg database
Method populateKeyring Undocumented
Method testEmptyGetKeys The initial local key list should be empty.
Method testPopulatedGetKeys Import our test keys and check they get imported.
Method testFilteredGetKeys Check the filtered key lookup mechanism.
Method test_unicode_filter Using a unicode filter works also.
Method test_non_ascii_filter localKeys should not error if passed non-ascii unicode strings.
Method testTestkeyrings Do we have the expected test keyring files
Method testImportKeyRing Import a sample keyring and check its contents are available.
Method testSetOwnerTrust Import a key and set the ownertrust.
Method testCheckTrustDb Test IGPGHandler.checkTrustDb()
def setUp(self):
Get a gpghandler and login
def tearDown(self):
Zero out the gpg database
def populateKeyring(self):
Undocumented
def testEmptyGetKeys(self):
The initial local key list should be empty.
def testPopulatedGetKeys(self):
Import our test keys and check they get imported.
def testFilteredGetKeys(self):
Check the filtered key lookup mechanism.

Test filtering by fingerprint, key ID, UID restricted to public or secret keyrings.

def test_unicode_filter(self):
Using a unicode filter works also.

XXX michaeln 2010-05-07 bug=576405 Recent versions of gpgme return unicode fingerprints, but at the same time, gpgme.Context().keylist falls over if it receives a unicode string.

def test_non_ascii_filter(self):
localKeys should not error if passed non-ascii unicode strings.
def testTestkeyrings(self):
Do we have the expected test keyring files
def testImportKeyRing(self):
Import a sample keyring and check its contents are available.
def testSetOwnerTrust(self):
Import a key and set the ownertrust.
def testCheckTrustDb(self):
Test IGPGHandler.checkTrustDb()
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.