diff options
author | Stefan Metzmacher <metze@samba.org> | 2016-08-02 12:35:38 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2016-08-11 07:10:38 +0200 |
commit | f3e878905c6ca84727d05b27e28913f904fd1316 (patch) | |
tree | a3401c03fb1390fd316bfa1f3ad1dde094699735 /python | |
parent | cbc6ba0bf61c54b471ddb0809f15a238deb3d6c9 (diff) | |
download | samba-f3e878905c6ca84727d05b27e28913f904fd1316.tar.gz |
tests:samba_tool: make use of assertCmdFail() in gpo.py
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12108
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 62b7e73d4007401f52792bc74768dfd8c1472274)
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/tests/samba_tool/gpo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/tests/samba_tool/gpo.py b/python/samba/tests/samba_tool/gpo.py index cd22706a320..6297e1a03f8 100644 --- a/python/samba/tests/samba_tool/gpo.py +++ b/python/samba/tests/samba_tool/gpo.py @@ -35,7 +35,7 @@ class GpoCmdTestCase(SambaToolCmdTest): def test_fetchfail(self): """Run against a non-existent GPO, and make sure it fails (this hard-coded UUID is very unlikely to exist""" (result, out, err) = self.runsubcmd("gpo", "fetch", "c25cac17-a02a-4151-835d-fae17446ee43", "-H", "ldap://%s" % os.environ["SERVER"]) - self.assertEquals(result, -1, "check for result code") + self.assertCmdFail(result, "check for result code") def test_fetch(self): """Run against a real GPO, and make sure it passes""" |