fixture

Test fixtures.

New in version 1.3.

class oslo_utils.fixture.TimeFixture(override_time=None)

A fixture for overriding the time returned by timeutils.utcnow().

Parameters:override_time – datetime instance or list thereof. If not given, defaults to the current UTC time.
advance_time_delta(timedelta)

Advance overridden time using a datetime.timedelta.

advance_time_seconds(seconds)

Advance overridden time by seconds.