testing.unit.test_gpg module

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

Bases: testing.unit.UnitTestCase

Test GPGFile

gpg_cycle(s, profile=None)[source]

Test encryption/decryption cycle on string s

setUp()[source]
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]

Used in test_GPGWriteFile above

get_buffer(size)[source]

Return buffer of size size, consisting of half random data

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

Iterator stops when you call this

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

Bases: testing.unit.UnitTestCase

Test making sha signatures

setUp()[source]
test_sha()[source]