From: Stefan Metzmacher Date: Tue, 2 Aug 2016 10:35:38 +0000 (+0200) Subject: tests:samba_tool: make use of assertCmdFail() in gpo.py X-Git-Tag: tevent-0.9.30~243 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62b7e73d4007401f52792bc74768dfd8c1472274;p=thirdparty%2Fsamba.git 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 Reviewed-by: Jeremy Allison Reviewed-by: Michael Adam --- 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"""