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