Continue to add/remove the valid hosts or users to the label or ACL in
case of failures.
Modified the corresponding unittests:
 . Adding check_playback() everywhere.
 . Changing to the new Exception messages.
 . New test for partial failure.

Risk: medium
Visibility: medium

Signed-off-by: Jean-Marc Eurin <jmeurin@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2525 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/cli/cli_mock.py b/cli/cli_mock.py
index 59d15b5..4acf976 100755
--- a/cli/cli_mock.py
+++ b/cli/cli_mock.py
@@ -62,10 +62,11 @@
             self.assertEqual('', err)
 
 
-    def assertOutput(self, obj,
+    def assertOutput(self, obj, results,
                      out_words_ok=[], out_words_no=[],
                      err_words_ok=[], err_words_no=[]):
         self.god.mock_io()
+        obj.output(results)
         obj.show_all_failures()
         (out, err) = self.god.unmock_io()
         self._check_output(out, out_words_ok, out_words_no,