Package openid :: Package test :: Module test_examples :: Class TestServer
[frames] | no frames]

Class TestServer

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   TestServer

Acceptance tests for examples/server.py.

These are more acceptance tests than unit tests as they actually start the whole server running and test it on its external HTTP interface.

Nested Classes

Inherited from unittest.TestCase: failureException

Instance Methods
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
runExampleServer(self)
Zero-arg run-the-server function to be passed to TestInfo.
source code
 
v1endpoint(self, port)
Return an OpenID 1.1 OpenIDServiceEndpoint for the server.
source code
 
test_checkidv1(self)
OpenID 1.1 checkid_setup request.
source code
 
test_allowed(self)
OpenID 1.1 checkid_setup request.
source code
 
twill_checkidv1(self, twillInfo) source code
 
twill_allowed(self, twillInfo) source code
 
tearDown(self)
Hook method for deconstructing the test fixture after testing it.
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

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)

tearDown(self)

source code 

Hook method for deconstructing the test fixture after testing it.

Overrides: unittest.TestCase.tearDown
(inherited documentation)