testing.unit.test_gpg module

class testing.unit.test_gpg.GPGTest(methodName='runTest')[source]

Bases: UnitTestCase

Test GPGFile

gpg_cycle(s, profile=None)[source]

Test encryption/decryption cycle on string s

pytestmark = [Mark(name='usefixtures', args=('redirect_stdin',), kwargs={})]
setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_GPGWriteFile()[source]

Test GPGWriteFile

test_GzipWriteFile()[source]

Test GzipWriteFile

test_gpg1()[source]

Test gpg short strings

test_gpg2()[source]

Test gpg long strings easily compressed

test_gpg3()[source]

Test on random data - must have /dev/urandom device

test_gpg_asym()[source]

Test GPG asymmetric encryption

test_gpg_hidden_asym()[source]

Test GPG asymmetric encryption with hidden key id

test_gpg_signing()[source]

Test to make sure GPG reports the proper signature key

test_gpg_signing_and_hidden_encryption()[source]

Test to make sure GPG reports the proper signature key even with hidden encryption key id

class testing.unit.test_gpg.GPGWriteFile_Helper[source]

Bases: object

Used in test_GPGWriteFile above

__init__()[source]
get_buffer(size)[source]

Return buffer of size size, consisting of half random data

get_read_size()[source]
set_at_end()[source]

Iterator stops when you call this

class testing.unit.test_gpg.GPGWriteHelper2(data)[source]

Bases: object

__init__(data)[source]
class testing.unit.test_gpg.SHATest(methodName='runTest')[source]

Bases: UnitTestCase

Test making sha signatures

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_sha()[source]