Test: Added colored obfuscation tests

This commit is contained in:
Paul Beckingham
2015-10-28 19:54:57 -04:00
parent e833cf05c5
commit a369d1ed2d

View File

@@ -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