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

 dirname
 gpghome
 keyid

Detailed Description

Definition at line 98 of file encryption_tests.py.


Member Function Documentation

Definition at line 100 of file encryption_tests.py.

00100 
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 encryption_tests.py.

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

Definition at line 109 of file encryption_tests.py.

00109 
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)
00113 


Member Data Documentation

Definition at line 101 of file encryption_tests.py.

Definition at line 102 of file encryption_tests.py.

Definition at line 104 of file encryption_tests.py.


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