From a369d1ed2dbcefcd052d8ea0b155ce9cfcef49d1 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 28 Oct 2015 19:54:57 -0400 Subject: [PATCH] Test: Added colored obfuscation tests --- test/obfuscate.t | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/obfuscate.t b/test/obfuscate.t index a7f7673da..4816a84f7 100755 --- a/test/obfuscate.t +++ b/test/obfuscate.t @@ -55,6 +55,10 @@ class TestObfuscation(TestCase): self.assertIn("xxxxxx", out) self.assertNotIn("SECRET", out) + code, out, err = self.t("rc.obfuscate:1 rc._forcecolor:1 1 info") + self.assertIn("xxxxxx", out) + self.assertNotIn("SECRET", out) + def test_list_obfuscation(self): """Verify that obfuscation hides all text in a report""" code, out, err = self.t("list") @@ -64,6 +68,10 @@ class TestObfuscation(TestCase): self.assertIn("xxxxxx", out) self.assertNotIn("SECRET", out) + code, out, err = self.t("rc.obfuscate:1 rc._forcecolor:1 list") + self.assertIn("xxxxxx", out) + self.assertNotIn("SECRET", out) + if __name__ == "__main__": from simpletap import TAPTestRunner