This method operates on the class, not on an instance of that class.
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
cls.connection = None
@classmethod
- def tearDownClass(self):
- if self.msg_handler_and_context:
- self.msg_ctx.deregister(self.msg_handler_and_context,
- msg_type=MSG_AUTH_LOG)
- self.msg_ctx.irpc_remove_name(AUTH_EVENT_NAME)
+ def tearDownClass(cls):
+ if cls.msg_handler_and_context:
+ cls.msg_ctx.deregister(cls.msg_handler_and_context,
+ msg_type=MSG_AUTH_LOG)
+ cls.msg_ctx.irpc_remove_name(AUTH_EVENT_NAME)
def setUp(self):
super(AuthLogTestBase, self).setUp()