From f68911801c1091a05d4c4fb3f3df6f6f9394741e Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 19 Jul 2015 20:55:16 -0400 Subject: [PATCH] Test: Added _show test --- test/show.t | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/show.t b/test/show.t index 6ecf095ea..c12581183 100755 --- a/test/show.t +++ b/test/show.t @@ -71,6 +71,18 @@ class TestShowCommand(TestCase): self.assertIn("Your .taskrc file contains these unrecognized variables:\n foo", out) +class TestShowHelperCommand(TestCase): + def setUp(self): + """Executed before each test in the class""" + self.t = Task() + + def test_show_helper_no_arg(self): + """Verify _show command lists all with no arg provided""" + code, out, err = self.t("_show") + self.assertIn("debug=no\n", out) + self.assertIn("verbose=yes\n", out) + + if __name__ == "__main__": from simpletap import TAPTestRunner unittest.main(testRunner=TAPTestRunner())