diff options
author | Eric Feng <erichfeng@gmail.com> | 2018-07-31 14:50:33 -0700 |
---|---|---|
committer | Eric Feng <erichfeng@gmail.com> | 2018-07-31 14:51:06 -0700 |
commit | eb1367f50fb7139fdb0c179128cac072ac1b6008 (patch) | |
tree | e046e63ab19b72190f6d5fe44c6ebe84af6daecf | |
parent | 9980eff540e07cf47386c52547aa562317d9d4a8 (diff) | |
download | raven-stack-local-cc-processor.tar.gz |
Adding testsstack-local-cc-processor
-rw-r--r-- | tests/processors/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/processors/tests.py b/tests/processors/tests.py index dca07e4..a38dea5 100644 --- a/tests/processors/tests.py +++ b/tests/processors/tests.py @@ -367,6 +367,11 @@ class SanitizePasswordsProcessorTest(TestCase): result = proc.sanitize('foo', '424242424242424') self.assertEquals(result, proc.MASK) + def test_sanitize_credit_card_in_stack_local(self): + proc = SanitizePasswordsProcessor(Mock()) + result = proc.sanitize('foo', "'424242424242424'") + self.assertEquals(result, proc.MASK) + def test_sanitize_non_ascii(self): proc = SanitizePasswordsProcessor(Mock()) result = proc.sanitize('__repr__: жили-были', '42') |