Logo Search packages:      
Sourcecode: ubuntu-sso-client version File versions  Download package

mocker::MockerTestCase Class Reference

Inheritance diagram for mocker::MockerTestCase:

ubuntu_sso::tests::test_config::ConfigFileTests ubuntu_sso::tests::test_key_acls::Loader ubuntu_sso::tests::test_main::Realm

List of all members.


Detailed Description

unittest.TestCase subclass with Mocker support.

@ivar mocker: The mocker instance.

This is a convenience only.  Mocker may easily be used with the
standard C{unittest.TestCase} class if wanted.

Test methods have a Mocker instance available on C{self.mocker}.
At the end of each test method, expectations of the mocker will
be verified, and any requested changes made to the environment
will be restored.

In addition to the integration with Mocker, this class provides
a few additional helper methods.

Definition at line 74 of file mocker.py.


Public Member Functions

def __init__
def addCleanup
def failIfApproximates
def failIfEndsWith
def failIfIn
def failIfIs
def failIfStartsWith
def failUnlessApproximates
def failUnlessEndsWith
def failUnlessIn
def failUnlessIs
def failUnlessMethodsMatch
def failUnlessStartsWith
def makeDir
def makeFile

Public Attributes

 mocker
 run

Static Public Attributes

 assertApproximates = failUnlessApproximates
 assertEndsWith = failUnlessEndsWith
 assertFalse = unittest.TestCase.failIf
 assertIdentical = assertIs
 assertIn = failUnlessIn
 assertIs = failUnlessIs
 assertIsNot = failIfIs
 assertMethodsMatch = failUnlessMethodsMatch
 assertNotApproximates = failIfApproximates
 assertNotEndsWith = failIfEndsWith
 assertNotIdentical = assertIsNot
 assertNotIn = failIfIn
 assertNotStartsWith = failIfStartsWith
 assertStartsWith = failUnlessStartsWith
 assertTrue = unittest.TestCase.failUnless
 expect = expect
 failIfIdentical = failIfIs
 failUnlessIdentical = failUnlessIs

Private Member Functions

def __cleanup

Private Attributes

 __cleanup_funcs
 __cleanup_paths

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index