def test_redact_raw_crash(self): redactor = RawCrashRedactor(self.get_tuned_config(RawCrashRedactor)) crash = { "Key1": "value", "Key2": [12, 23, 34], "StackTraces": "foo:bar", "Key3": {"a": 1}, } expected_crash = {"Key1": "value", "Key2": [12, 23, 34], "Key3": {"a": 1}} redactor.redact(crash) assert crash == expected_crash
def test_redact_raw_crash(self): redactor = RawCrashRedactor(self.get_tuned_config(RawCrashRedactor)) crash = { 'Key1': 'value', 'Key2': [12, 23, 34], 'StackTraces': 'foo:bar', 'Key3': { 'a': 1, }, } expected_crash = { 'Key1': 'value', 'Key2': [12, 23, 34], 'Key3': { 'a': 1, }, } redactor.redact(crash) assert crash == expected_crash
def test_redact_raw_crash(self): redactor = RawCrashRedactor(self.config) crash = { 'Key1': 'value', 'Key2': [12, 23, 34], 'StackTraces': 'foo:bar', 'Key3': { 'a': 1, }, } expected_crash = { 'Key1': 'value', 'Key2': [12, 23, 34], 'Key3': { 'a': 1, }, } redactor.redact(crash) eq_(crash, expected_crash)