Package rostest :: Module baretest :: Class BareTestCase

Class BareTestCase

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   BareTestCase

Nested Classes

Inherited from unittest.TestCase: failureException

Instance Methods
 
__init__(self, exe, args, results, retry=0, time_limit=None, test_name=None)
Create an instance of the class that will use the named test method when executed.
source code
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
tearDown(self)
Hook method for deconstructing the test fixture after testing it.
source code
 
runTest(self) source code

Inherited from unittest.TestCase: __call__, __eq__, __hash__, __ne__, __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__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, exe, args, results, retry=0, time_limit=None, test_name=None)
(Constructor)

source code 

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Parameters:
  • exe (str) - path to executable to run
  • args ([str]) - arguments to exe
  • results - test results accumulator
  • retry (int) - (optional) number of retries for test
  • time_limit (float) - (optional) time limit for test. Defaults to BARE_TIME_LIMIT.
  • test_name (str) - (optional) override automatically geneated test name
Overrides: object.__init__

setUp(self)

source code 

Hook method for setting up the test fixture before exercising it.

Overrides: unittest.TestCase.setUp
(inherited documentation)

tearDown(self)

source code 

Hook method for deconstructing the test fixture after testing it.

Overrides: unittest.TestCase.tearDown
(inherited documentation)