From 62b7e73d4007401f52792bc74768dfd8c1472274 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 2 Aug 2016 12:35:38 +0200 Subject: [PATCH] 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 --- python/samba/tests/samba_tool/gpo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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""" -- 2.47.2