]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests python krb5: Make PrincipalName_create a class method
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 26 Oct 2020 20:29:56 +0000 (09:29 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 4 Nov 2020 22:54:41 +0000 (22:54 +0000)
Make PrincipalName_create a class method, so it can be used in helper
classes.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/krb5/raw_testcase.py

index f43ce9cbc3cffa39ce2ba154077d898c992f1334..45e46e0b7bad65bef4dfc571f9c023a1aca95ac8 100644 (file)
@@ -470,6 +470,7 @@ class RawKerberosTest(TestCase):
         }
         return Checksum_obj
 
+    @classmethod
     def PrincipalName_create(self, name_type, names):
         # PrincipalName   ::= SEQUENCE {
         #         name-type       [0] Int32,