Back to index

obnam  1.1
Public Member Functions | Public Attributes
obnamlib.encryption_tests.GetPublicKeyTests Class Reference

List of all members.

Public Member Functions

def setUp
def tearDown
def test_exports_key

Public Attributes


Detailed Description

Definition at line 98 of file

Member Function Documentation

Definition at line 100 of file

00101     def setUp(self):
00102         self.dirname = tempfile.mkdtemp()
00103         self.gpghome = os.path.join(self.dirname, 'gpghome')
00104         shutil.copytree('test-gpghome', self.gpghome)
00105         self.keyid = '1B321347'

Definition at line 106 of file

00107     def tearDown(self):
00108         shutil.rmtree(self.dirname)

Definition at line 109 of file

00110     def test_exports_key(self):
00111         key = obnamlib.get_public_key(self.keyid, gpghome=self.gpghome)
00112         self.assert_('-----BEGIN PGP PUBLIC KEY BLOCK-----' in key)

Member Data Documentation

Definition at line 101 of file

Definition at line 102 of file

Definition at line 104 of file

The documentation for this class was generated from the following file: