From 6bb9cd49eacc80b72d9754612607c33790daceba Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 28 Oct 2015 16:44:39 -0400 Subject: [PATCH] Test: Tested color output of commands --- test/commands.t | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/commands.t b/test/commands.t index 15d7bcdfe..a79b2e4b3 100755 --- a/test/commands.t +++ b/test/commands.t @@ -46,6 +46,13 @@ class TestCommands(TestCase): self.assertRegexpMatches(out, "list\s+report\s+RO\s+ID\s+GC\s+Ctxt\s+Filt\s+Most details of") self.assertRegexpMatches(out, "modify\s+operation\s+RW\s+Filt\s+Mods\s+Modifies the") + def test_command_dna_color(self): + """Verify 'add', 'modify', 'list' dna""" + code, out, err = self.t("commands rc._forcecolor:on") + self.assertRegexpMatches(out, "add\s+operation\s+RW\s+Mods\s+Adds a new task") + self.assertRegexpMatches(out, "list\s+report\s+RO\s+ID\s+GC\s+Ctxt\s+Filt\s+Most details of") + self.assertRegexpMatches(out, "modify\s+operation\s+RW\s+Filt\s+Mods\s+Modifies the") + if __name__ == "__main__": from simpletap import TAPTestRunner