From 9cbbf2b71c106311357dd5f3831970ba759bf724 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 28 Oct 2015 18:32:54 -0400 Subject: [PATCH] Test: Added no-color logo test --- test/logo.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/logo.t b/test/logo.t index 69ee69f9c..0394119cb 100755 --- a/test/logo.t +++ b/test/logo.t @@ -41,10 +41,15 @@ class TestLogoCommand(TestCase): self.t = Task() def test_logo_command(self): - """Check that there are colors. For coverage""" + """Check that there are colors. For coverage""" code, out, err = self.t("logo rc._forcecolor:on") self.assertRegexpMatches(out, ".\[48;5;\d+m .\[0m") + def test_logo_command_no_color(self): + """Check that it only works with color. For coverage""" + code, out, err = self.t.runError("logo") + self.assertIn("The logo command requires that color support is enabled.", err) + if __name__ == "__main__": from simpletap import TAPTestRunner