diff options
-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') |