Package flumotion :: Package common :: Module testsuite :: Class TestCase
[hide private]

Class TestCase

source code

                    object --+            
                             |            
             unittest.TestCase --+        
                                 |        
                        object --+        
                                 |        
twisted.trial.unittest._Assertions --+    
                                     |    
       twisted.trial.unittest.TestCase --+
                                         |
                                        TestCase
Known Subclasses:

Instance Methods [hide private]
 
failUnlessFailure(self, deferred, *expectedFailures)
Assert that deferred will errback with one of expectedFailures.
source code
 
assertFailure(self, deferred, *expectedFailures)
Assert that deferred will errback with one of expectedFailures.
source code

Inherited from twisted.trial.unittest.TestCase: __call__, __init__, deferSetUp, deferSetUpClass, deferTearDown, deferTearDownClass, deferTestMethod, flushLoggedErrors, getSkip, getSuppress, getTimeout, getTodo, mktemp, run, runTest, shortDescription, visit

Inherited from twisted.trial.unittest.TestCase (private): _cbDeferTestMethod, _classCleanUp, _cleanUp, _deprecateReactor, _ebDeferSetUp, _ebDeferSetUpClass, _ebDeferTearDown, _ebDeferTestMethod, _ebTearDownClass, _getReason, _installObserver, _isFirst, _isLast, _makeReactorMethod, _prepareClassFixture, _removeObserver, _run, _undeprecateReactor, _wait

Inherited from twisted.trial.unittest._Assertions: assertAlmostEqual, assertAlmostEquals, assertApproximates, assertEqual, assertEquals, assertFalse, assertIdentical, assertIn, assertNot, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIdentical, assertNotIn, assertNotSubstring, assertRaises, assertSubstring, assertTrue, assert_, fail, failIf, failIfAlmostEqual, failIfAlmostEquals, failIfEqual, failIfEquals, failIfIdentical, failIfIn, failIfSubstring, failUnless, failUnlessAlmostEqual, failUnlessAlmostEquals, failUnlessApproximates, failUnlessEqual, failUnlessEquals, failUnlessFalse, failUnlessIdentical, failUnlessIn, failUnlessRaises, failUnlessSubstring, failUnlessTrue

Inherited from unittest.TestCase: __providedBy__, __repr__, __str__, countTestCases, debug, defaultTestResult, id, setUp, tearDown

Inherited from unittest.TestCase (private): _exc_info

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Methods [hide private]

Inherited from twisted.trial.unittest.TestCase (private): _initInstances

Class Variables [hide private]

Inherited from twisted.trial.unittest.TestCase: __implemented__, __provides__

Instance Variables [hide private]

Inherited from twisted.trial.unittest.TestCase: failureException, forceGarbageCollection, skip, suppress, timeout, todo

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

failUnlessFailure(self, deferred, *expectedFailures)

source code 

Assert that deferred will errback with one of expectedFailures. Returns the original Deferred with callbacks added. You will need to return this Deferred from your test case.

Overrides: twisted.trial.unittest._Assertions.assertFailure
(inherited documentation)

assertFailure(self, deferred, *expectedFailures)

source code 

Assert that deferred will errback with one of expectedFailures. Returns the original Deferred with callbacks added. You will need to return this Deferred from your test case.

Overrides: twisted.trial.unittest._Assertions.assertFailure
(inherited documentation)