From 65347b7a215b50f2a0ff53837da6cd6f603204d3 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 28 Oct 2015 17:46:08 -0400 Subject: [PATCH] Test: Added test for 'color.alternate' in custom reports --- test/custom.t | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/custom.t b/test/custom.t index b79751b51..2c87d4be8 100755 --- a/test/custom.t +++ b/test/custom.t @@ -65,6 +65,14 @@ class TestCustomReports(TestCase): self.assertIn("ID", out) self.assertIn("DESCRIPTION", out) + def test_custom_alternate(self): + """Verify that color.alternate is used""" + self.t("add zero") + self.t("add one project:A") + self.t.config("color.alternate", "on blue") + code, out, err = self.t("foo rc._forcecolor:on rc.report.foo.filter:") + self.assertIn("[44m", out) + class TestCustomErrorHandling(TestCase): def setUp(self): self.t = Task()