1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-23 00:23:53 +03:00

tests/auth_log: Rename ‘self’ parameter to ‘cls’

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>
This commit is contained in:
Joseph Sutton
2023-05-24 10:13:07 +12:00
committed by Andrew Bartlett
parent 1923abe7e4
commit 40425672fe

View File

@@ -128,11 +128,11 @@ class AuthLogTestBase(samba.tests.TestCase):
# Discard any previously queued messages. # Discard any previously queued messages.
@classmethod @classmethod
def discardMessages(self): def discardMessages(cls):
self.msg_ctx.loop_once(0.001) cls.msg_ctx.loop_once(0.001)
while len(self.context["messages"]): while len(cls.context["messages"]):
self.context["messages"] = [] cls.context["messages"] = []
self.msg_ctx.loop_once(0.001) cls.msg_ctx.loop_once(0.001)
# Remove any NETLOGON authentication messages # Remove any NETLOGON authentication messages
# NETLOGON is only performed once per session, so to avoid ordering # NETLOGON is only performed once per session, so to avoid ordering