Test: Added colored obfuscation tests
This commit is contained in:
@@ -55,6 +55,10 @@ class TestObfuscation(TestCase):
|
|||||||
self.assertIn("xxxxxx", out)
|
self.assertIn("xxxxxx", out)
|
||||||
self.assertNotIn("SECRET", 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):
|
def test_list_obfuscation(self):
|
||||||
"""Verify that obfuscation hides all text in a report"""
|
"""Verify that obfuscation hides all text in a report"""
|
||||||
code, out, err = self.t("list")
|
code, out, err = self.t("list")
|
||||||
@@ -64,6 +68,10 @@ class TestObfuscation(TestCase):
|
|||||||
self.assertIn("xxxxxx", out)
|
self.assertIn("xxxxxx", out)
|
||||||
self.assertNotIn("SECRET", 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__":
|
if __name__ == "__main__":
|
||||||
from simpletap import TAPTestRunner
|
from simpletap import TAPTestRunner
|
||||||
|
|||||||
Reference in New Issue
Block a user