summaryrefslogtreecommitdiff
path: root/source4/scripting/python
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/scripting/python
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/scripting/python')
-rw-r--r--source4/scripting/python/samba/tests/upgradeprovision.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/tests/upgradeprovision.py b/source4/scripting/python/samba/tests/upgradeprovision.py
index 50dcfeb00c..b81ee8a8ab 100644
--- a/source4/scripting/python/samba/tests/upgradeprovision.py
+++ b/source4/scripting/python/samba/tests/upgradeprovision.py
@@ -127,7 +127,7 @@ class UpdateSecretsTests(samba.tests.TestCaseInTempDir):
expression="dn=@MODULES", base="", scope=SCOPE_SUBTREE)
refmodules = self.referencedb.search(
expression="dn=@MODULES", base="", scope=SCOPE_SUBTREE)
- self.assertEquals(newmodules, refmodules)
+ self.assertEquals(newmodules.msgs, refmodules.msgs)
def tearDown(self):
for name in ["ref.ldb", "secrets.ldb"]: