diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-04-13 21:27:52 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-04-13 21:27:52 +0100 |
| commit | 0496ffac85e663ba4c9a14d2d4eb300a3c017ae2 (patch) | |
| tree | 22850f3993686d89159885f516bfb4381ffc0906 /tests/unit/base.py | |
| parent | fc438e6a84402e621877f6c30097442af46f122b (diff) | |
New upstream version 20240413upstream/20240413
Diffstat (limited to 'tests/unit/base.py')
| -rw-r--r-- | tests/unit/base.py | 4 |
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() |
