Package yadis :: Package test :: Module test_etxrd :: Class TestServiceParser
[hide private]
[frames] | no frames]

Class TestServiceParser

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   TestServiceParser

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.
  _getServices(self, flt=None)
  testParse(self)
Make sure that parsing succeeds at all
  testParseOpenID(self)
Parse for OpenID services with a transformer function
  _checkServices(self, expectedServices)
Check to make sure that the expected services are found in that order in the parsed document.
  testGetSeveral(self)
Get some services in order
  testGetSeveralForOne(self)
Getting services for one Service with several Type elements.
  testNoXRDS(self)
Make sure that we get an exception when an XRDS element is not present
  testEmpty(self)
Make sure that we get an exception when an XRDS element is not present
  testNoXRD(self)
Make sure that we get an exception when there is no XRD element present.

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 [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)

_getServices(self, flt=None)

source code 

testParse(self)

source code 

Make sure that parsing succeeds at all

testParseOpenID(self)

source code 

Parse for OpenID services with a transformer function

_checkServices(self, expectedServices)

source code 

Check to make sure that the expected services are found in that order in the parsed document.

testGetSeveral(self)

source code 

Get some services in order

testGetSeveralForOne(self)

source code 

Getting services for one Service with several Type elements.

testNoXRDS(self)

source code 

Make sure that we get an exception when an XRDS element is not present

testEmpty(self)

source code 

Make sure that we get an exception when an XRDS element is not present

testNoXRD(self)

source code 

Make sure that we get an exception when there is no XRD element present.