Skip to content

Commit

Permalink
tests:samba_tool: make use of assertCmdFail() in gpo.py
Browse files Browse the repository at this point in the history
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12108

Signed-off-by: Stefan Metzmacher <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
Reviewed-by: Michael Adam <[email protected]>
  • Loading branch information
metze-samba authored and obnoxxx committed Aug 4, 2016
1 parent fed029a commit 62b7e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/samba/tests/samba_tool/gpo.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_gpo_list(self):
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"""
Expand Down

0 comments on commit 62b7e73

Please sign in to comment.