testtube.TestContext

The TestContext class is used to manage state within and across tests and allow for the test tree to be reentrant.

Class

class testtube.TestContext()

Properties

global
object
Default {}
Description The global property should be used to manage state across multiple tests.
local
object
Default {}
Description The local property should be used to manage state in the context of a single test.
httpHistory
Description When a new instance of an HttpTest is visited, this will be reinstantiated. If we are descending further down the tree, the current history will be saved and restored upon return.

Example