Package openid :: Package test :: Module test_fetchers :: Class DefaultFetcherTest
[frames] | no frames]

Class DefaultFetcherTest

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   DefaultFetcherTest

Nested Classes

Inherited from unittest.TestCase: failureException

Instance Methods
 
setUp(self)
reset the default fetcher to None
source code
 
tearDown(self)
reset the default fetcher to None
source code
 
test_getDefaultNotNone(self)
Make sure that None is never returned as a default fetcher
source code
 
test_setDefault(self)
Make sure the getDefaultFetcher returns the object set for setDefaultFetcher
source code
 
test_callFetch(self)
Make sure that fetchers.fetch() uses the default fetcher instance that was set.
source code
 
test_wrappedByDefault(self)
Make sure that the default fetcher instance wraps exceptions by default
source code
 
test_notWrapped(self)
Make sure that if we set a non-wrapped fetcher as default, it will not wrap exceptions.
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 

reset the default fetcher to None

Overrides: unittest.TestCase.setUp

tearDown(self)

source code 

reset the default fetcher to None

Overrides: unittest.TestCase.tearDown