Package openid :: Package test :: Module test_server :: Class TestEncode
[frames] | no frames]

Class TestEncode

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   TestEncode

Nested Classes

Inherited from unittest.TestCase: failureException

Instance Methods
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
test_id_res_OpenID2_GET(self)
Check that when an OpenID 2 response does not exceed the OpenID 1 message size, a GET response (i.e., redirect) is issued.
source code
 
test_id_res_OpenID2_POST(self)
Check that when an OpenID 2 response exceeds the OpenID 1 message size, a POST response (i.e., an HTML form) is returned.
source code
 
test_toFormMarkup(self) source code
 
test_toHTML(self) source code
 
test_id_res_OpenID1_exceeds_limit(self)
Check that when an OpenID 1 response exceeds the OpenID 1 message size, a GET response is issued.
source code
 
test_id_res(self) source code
 
test_cancel(self) source code
 
test_cancelToForm(self) source code
 
test_assocReply(self) source code
 
test_checkauthReply(self) source code
 
test_unencodableError(self) source code
 
test_encodableError(self) source code

Inherited from unittest.TestCase: __call__, __init__, __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 object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties

Inherited from object: __class__

Method Details

setUp(self)

source code 

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

Overrides: unittest.TestCase.setUp
(inherited documentation)

test_id_res_OpenID1_exceeds_limit(self)

source code 

Check that when an OpenID 1 response exceeds the OpenID 1 message size, a GET response is issued. Technically, this shouldn't be permitted by the library, but this test is in place to preserve the status quo for OpenID 1.