]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/linked_attribute tests: remove helper function unused parameter
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 1 Feb 2017 01:21:22 +0000 (14:21 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 9 Feb 2017 02:17:14 +0000 (03:17 +0100)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/tests/python/linked_attributes.py

index 305ff63dc9338727ad03990052c9a31edd8cf625..183360027a416b7a830f740ba2fc4c343dd0ac1a 100644 (file)
@@ -115,8 +115,7 @@ class LATests(samba.tests.TestCase):
         m[attr] = ldb.MessageElement(dest, ldb.FLAG_MOD_REPLACE, attr)
         self.samdb.modify(m, controls=controls)
 
-    def attr_search(self, obj, expected, attr, scope=ldb.SCOPE_BASE,
-                    **controls):
+    def attr_search(self, obj, attr, scope=ldb.SCOPE_BASE, **controls):
         if opts.no_reveal_internals:
             if 'reveal_internals' in controls:
                 del controls['reveal_internals']
@@ -130,7 +129,7 @@ class LATests(samba.tests.TestCase):
         return res
 
     def assert_links(self, obj, expected, attr, msg='', **kwargs):
-        res = self.attr_search(obj, expected, attr, **kwargs)
+        res = self.attr_search(obj, attr, **kwargs)
 
         if len(expected) == 0:
             if attr in res[0]: