Test: Added no-color logo test

This commit is contained in:
Paul Beckingham 2015-10-28 18:32:54 -04:00
parent 7fb907c76c
commit 9cbbf2b71c

View file

@ -45,6 +45,11 @@ class TestLogoCommand(TestCase):
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