summaryrefslogtreecommitdiff
path: root/source4/dsdb/tests/python/sec_descriptor.py
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-02-09 21:51:34 +0300
committerMatthieu Patou <mat@matws.net>2011-02-21 10:55:59 +0300
commit6d48a6ddb3af7547d4ad004858808d08ac8d1594 (patch)
tree20586144dfe938110201e89cfa962ff786ab470c /source4/dsdb/tests/python/sec_descriptor.py
parentb1595f40c506bb180758b5ee60122de5e29e0ccd (diff)
downloadsamba-6d48a6ddb3af7547d4ad004858808d08ac8d1594.tar.gz
samba-6d48a6ddb3af7547d4ad004858808d08ac8d1594.tar.bz2
samba-6d48a6ddb3af7547d4ad004858808d08ac8d1594.zip
s4-unittests: replace assertEquals(res, []) by assertEquals(len(res), 0)
Diffstat (limited to 'source4/dsdb/tests/python/sec_descriptor.py')
-rwxr-xr-xsource4/dsdb/tests/python/sec_descriptor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/tests/python/sec_descriptor.py b/source4/dsdb/tests/python/sec_descriptor.py
index 705bf89581..b3e6207336 100755
--- a/source4/dsdb/tests/python/sec_descriptor.py
+++ b/source4/dsdb/tests/python/sec_descriptor.py
@@ -1262,7 +1262,7 @@ class DaclDescriptorTests(DescriptorTests):
res = self.ldb_admin.search(base=self.base_dn, scope=SCOPE_SUBTREE, \
expression="distinguishedName=%s" % object_dn)
# Make sure top testing OU has been deleted before starting the test
- self.assertEqual(res, [])
+ self.assertEqual(len(res), 0)
self.ldb_admin.create_ou(object_dn)
desc_sddl = self.sd_utils.get_sd_as_sddl(object_dn)
# Make sure there are inheritable ACEs initially