summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/netcmd/domainlevel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/netcmd/domainlevel.py b/source4/scripting/python/samba/netcmd/domainlevel.py
index 310747a3de..72559bb924 100644
--- a/source4/scripting/python/samba/netcmd/domainlevel.py
+++ b/source4/scripting/python/samba/netcmd/domainlevel.py
@@ -200,7 +200,7 @@ class cmd_domainlevel(Command):
try:
samdb.modify(m)
except LdbError, (num, _):
- pass
+ self.assertEquals(num, ldb.ERR_UNWILLING_TO_PERFORM)
# Directly on the base DN
m = ldb.Message()
@@ -219,7 +219,7 @@ class cmd_domainlevel(Command):
try:
samdb.modify(m)
except LdbError, (num, _):
- pass
+ self.assertEquals(num, ldb.ERR_UNWILLING_TO_PERFORM)
level_domain = new_level_domain
msgs.append("Domain function level changed!")