Merge "Pulls up _test_atomic_action_timer to TestCase"

This commit is contained in:
Jenkins 2015-01-15 18:11:32 +00:00 committed by Gerrit Code Review
commit b4bca9856b

View File

@ -37,6 +37,11 @@ class TestCase(base.BaseTestCase):
super(TestCase, self).setUp()
self.addCleanup(mock.patch.stopall)
def _test_atomic_action_timer(self, atomic_actions, name):
action_duration = atomic_actions.get(name)
self.assertIsNotNone(action_duration)
self.assertIsInstance(action_duration, float)
class DBTestCase(TestCase):
"""Base class for tests which use DB."""