fixture

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.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.