diff options
-rw-r--r-- | source4/scripting/python/samba/tests/samba_tool/timecmd.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/tests/samba_tool/timecmd.py b/source4/scripting/python/samba/tests/samba_tool/timecmd.py index 8eb96ae874..b9946f8f56 100644 --- a/source4/scripting/python/samba/tests/samba_tool/timecmd.py +++ b/source4/scripting/python/samba/tests/samba_tool/timecmd.py @@ -40,4 +40,6 @@ class TimeCmdTestCase(SambaToolCmdTest): def test_timefail(self): """Run time against a non-existant server, and make sure it fails""" (result, out, err) = self.runcmd("time", "notaserver") + self.assertEquals(result, -1, "check for result code") + self.assertTrue(err.strip().endswith("NT_STATUS_OBJECT_NAME_NOT_FOUND"), "ensure right error string") self.assertEquals(out, "", "ensure no output returned") |