Base classes for our unit tests.
Allows overriding of CONF for use of fakes, and some black magic for inline callbacks.
Bases: object
Bases: testtools.testcase.TestCase
Test case base class for all unit tests.
Assert two dicts are equivalent.
This is a ‘deep’ match in the sense that it handles nested dictionaries appropriately.
NOTE:
If you don’t care (or don’t know) a given value, you can specify the string DONTCARE as the value. This will cause that dict-item to be skipped.
Override CONF variables for a test.
Use python mock to mock an object attribute
Mocks the specified objects attribute with the given value. Automatically performs ‘addCleanup’ for the mock.
Cleanly override CONF variables.
Use python mock to mock a path with automatic cleanup.
Run before each test method to initialize test environment.
Bases: exceptions.Exception