From: Zack Cerza Date: Mon, 22 Aug 2016 21:43:44 +0000 (-0600) Subject: Patch teardown in some test methods X-Git-Tag: 1.1.0~544^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0e54bda176cd2cf51177bfe3e85c5ff692220f82;p=teuthology.git Patch teardown in some test methods Specifically, test_setup_called() and test_begin_called() Signed-off-by: Zack Cerza --- diff --git a/teuthology/test/task/__init__.py b/teuthology/test/task/__init__.py index a2b804cf6..f03737e8c 100644 --- a/teuthology/test/task/__init__.py +++ b/teuthology/test/task/__init__.py @@ -146,6 +146,7 @@ class TestTask(object): setup=DEFAULT, begin=DEFAULT, end=DEFAULT, + teardown=DEFAULT, ): with self.klass(self.ctx, self.task_config) as task: task.setup.assert_called_once_with() @@ -156,6 +157,7 @@ class TestTask(object): setup=DEFAULT, begin=DEFAULT, end=DEFAULT, + teardown=DEFAULT, ): with self.klass(self.ctx, self.task_config) as task: task.begin.assert_called_once_with()