]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:tests: Make getSamDB() a static method
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 16 Aug 2023 22:22:35 +0000 (10:22 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 21 Aug 2023 23:37:29 +0000 (23:37 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/samba_tool/base.py

index 76299f8023d80a9d42f6f3502765124e0a801813..a5d890a2afd38970e1d7b08f03f01ca668163d59 100644 (file)
@@ -42,7 +42,8 @@ class SambaToolCmdTest(samba.tests.BlackboxTestCase):
     # override if they need to (to e.g. add a lying isatty() method).
     stringIO = StringIO
 
-    def getSamDB(self, *argv):
+    @staticmethod
+    def getSamDB(*argv):
         """a convenience function to get a samdb instance so that we can query it"""
 
         # We build a fake command to get the options created the same