diff options
Diffstat (limited to 'nova/test.py')
-rw-r--r-- | nova/test.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nova/test.py b/nova/test.py index baeef49c2..08d426874 100644 --- a/nova/test.py +++ b/nova/test.py @@ -246,3 +246,12 @@ class APICoverage(object): self.assertThat( test_methods, testtools.matchers.ContainsAll(api_methods)) + + +class TimeOverride(fixtures.Fixture): + """Fixture to start and remove time override.""" + + def setUp(self): + super(TimeOverride, self).setUp() + timeutils.set_time_override() + self.addCleanup(timeutils.clear_time_override) |