Base classes for our unit tests.
Allows overriding of flags for use of fakes, and some black magic for inline callbacks.
Bases: unittest.case.TestCase
Test case base class for all unit tests.
Assert a list of dicts are equivalent.
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.
Python < v2.7 compatibility. Assert ‘a’ in ‘b’
Python < v2.7 compatibility. Assert ‘a’ is Instance of ‘b’
Python < v2.7 compatibility. Assert ‘a’ NOT in ‘b’
Assert that a particular exception is not raised.
If exc_class is None, then we assert that no error is raised.
Otherwise, we assert that only a particular error wasn’t raised; if any different exceptions were raised, we just silently capture them and return.
Assert a sub_dict is subset of super_dict.
Override flag variables for a test.
Run before each test method to initialize test environment.
Runs after each test method to tear down test environment.
Bases: exceptions.Exception
Bases: object
Decorator that skips a test if condition is true.
Decorator that skips a test if running in fake mode.
Bases: object
Decorator that skips a test.
Bases: object
Decorator that skips a test if condition is not true.