Logo Search packages:      
Sourcecode: ubuntuone-client version File versions

contrib::mocker::MockerTestCase Class Reference

Inheritance diagram for contrib::mocker::MockerTestCase:

tests::oauthdesktop::test_config::ConfigFileTests tests::oauthdesktop::test_key_acls::Loader tests::oauthdesktop::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


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


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

Generated by  Doxygen 1.6.0   Back to index