Package dkim :: Package tests :: Module test_crypto :: Class TestRSASSA
[hide private]
[frames] | no frames]

Class TestRSASSA

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   TestRSASSA

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
test_sign_and_verify(self) source code
 
test_invalid_signature(self) source code

Inherited from unittest.TestCase: __call__, __eq__, __hash__, __init__, __ne__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, tearDown

Inherited from unittest.TestCase (private): _exc_info

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  test_digest = '0123456789abcdef0123'
  test_signature = '\xcc\x8d6G\xd6M\xd3\xbc\x12\x98IG\xa2{\xdf\x...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 

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

Overrides: unittest.TestCase.setUp
(inherited documentation)

Class Variable Details [hide private]

test_signature

Value:
'\xcc\x8d6G\xd6M\xd3\xbc\x12\x98IG\xa2{\xdf\xbbVPA\xfc\xc9\xdbx\x1a\xf\
bK`\xd2\x9d(\x8d\x8d`\xde\x9e\x19\x16\xd6\xf8\x15i\xc3\xe7*\xf4BS\x8d\\
xd6\xae\xcbP\xa6\xde\x9a\x14V_\xddg\x9cF\xffxBH.\x15\xe5\xaa\x07\x85Ib\
\x1bo\x12\xca\x8c\xd5~\xcf\xad\x95\xb1\x8eSX\x1e\x13\x1cl<|\xd0\x1c\xb\
1S\xad\xebC\x9d-j\xb8\xb2\x15\xb1\x9b\xe0\xe6\x9e\xf4\x90\x88P\x04\xa4\
t\xeb&\xd7G\xa2\x19i>\x8c'