Merge "Pulls up _test_atomic_action_timer to TestCase"
This commit is contained in:
commit
b4bca9856b
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user