summaryrefslogtreecommitdiff
path: root/tests/unit/base.py
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-04-13 21:28:00 +0100
committerDave Hibberd <hibby@debian.org>2024-04-13 21:28:00 +0100
commit824c4dbfc89ab108ccac0b32cec7950744d2dc41 (patch)
tree551a84a22eaec580bcd1a0402302504714347d94 /tests/unit/base.py
parent57aacec614eade6d835418db7740ab611f22773d (diff)
parent0496ffac85e663ba4c9a14d2d4eb300a3c017ae2 (diff)
Update upstream source from tag 'upstream/20240413'
Update to upstream version '20240413' with Debian dir 62c7de265ce7a67bd3a5b9926035f7ef2243b9f4
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()