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