Package dkim :: Package tests :: Module test_dkim :: Class TestSignAndVerify
[hide private]
[frames] | no frames]

Class TestSignAndVerify

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   TestSignAndVerify

End-to-end signature and verification tests.

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
 
dnsfunc(self, domain, timeout=5) source code
 
dnsfunc2(self, domain, timeout=5) source code
 
dnsfunc3(self, domain, timeout=5) source code
 
dnsfunc4(self, domain, timeout=5) source code
 
dnsfunc5(self, domain, timeout=5) source code
 
dnsfunc6(self, domain, timeout=5) source code
 
test_verifies(self) source code
 
test_double_verifies(self) source code
 
test_double_previous_verifies(self) source code
 
test_catch_bad_key(self) source code
 
test_verifies_lflinesep(self) source code
 
test_implicit_k(self) source code
 
test_bad_version(self) source code
 
test_unknown_k(self) source code
 
test_simple_signature(self) source code
 
test_string_include(self) source code
 
test_add_body_length(self) source code
 
test_altered_body_fails(self) source code
 
test_l_verify(self) source code
 
test_present(self) source code
 
test_badly_encoded_domain_fails(self) source code
 
test_dkim_signature_canonicalization(self) source code
 
test_degenerate_folding(self) source code
 
test_extra_headers(self) source code
 
test_multiple_from_fails(self) source code
 
test_no_from_fails(self) source code
 
test_validate_signature_fields(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__

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)