summaryrefslogtreecommitdiff
path: root/tests/unit/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/base.py')
-rw-r--r--tests/unit/base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/base.py b/tests/unit/base.py
index 72c554a..a9e938c 100644
--- a/tests/unit/base.py
+++ b/tests/unit/base.py
@@ -12,6 +12,10 @@ class BaseTest(unittest.TestCase):
__builtins__['_'] = lambda s: s
self.mocks = []
+ def use(self, m):
+ self.mocks.append(m)
+ m.start()
+
def tearDown(self):
for m in self.mocks:
m.stop()