diff options
author | Mikhail Durnosvistov <mdurnosvistov@mirantis.com> | 2014-01-17 06:30:09 -0500 |
---|---|---|
committer | Mikhail Durnosvistov <mdurnosvistov@mirantis.com> | 2014-02-13 23:13:59 +0200 |
commit | db142161598941330e7563d32fae41ef8867dadb (patch) | |
tree | d1c96b8117fb7a6b592158577d6e0a5688577e3e /ironic/tests/base.py | |
parent | 23bc9c360015769bf4246cc40e93e23297b0781d (diff) | |
download | ironic-db142161598941330e7563d32fae41ef8867dadb.tar.gz |
Removes use of timeutils.set_time_override
The set_time_override function in timeutils was written as a
helper function to mock utcnow for unittests before 'mock' was
generally used. Now that we have mock and fixture, we no longer
need to use it.
Change-Id: Ibcf6d4abee4a52bc459fc322e6a5268d39d70450
Partial-Bug: #1266962
Diffstat (limited to 'ironic/tests/base.py')
-rw-r--r-- | ironic/tests/base.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ironic/tests/base.py b/ironic/tests/base.py index c1f456c7b..3d9d1ebdf 100644 --- a/ironic/tests/base.py +++ b/ironic/tests/base.py @@ -42,7 +42,6 @@ from ironic.common import paths from ironic.objects import base as objects_base from ironic.openstack.common.db.sqlalchemy import session from ironic.openstack.common import log as logging -from ironic.openstack.common import timeutils from ironic.tests import conf_fixture from ironic.tests import policy_fixture @@ -211,12 +210,3 @@ class TestCase(testtools.TestCase): return os.path.join(root, project_file) else: return root - - -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) |