diff options
author | David Cramer <dcramer@gmail.com> | 2012-04-20 15:36:37 -0700 |
---|---|---|
committer | David Cramer <dcramer@gmail.com> | 2012-04-20 15:36:37 -0700 |
commit | 76fb1b17586de274716aacb56a58b46688754ded (patch) | |
tree | b48371e11ee61dc84a6dbbfc7c0f81e07460306c /tests/processors | |
parent | 010963e993fc224b7e07c0b35b7007c3df8a8aa5 (diff) | |
download | raven-76fb1b17586de274716aacb56a58b46688754ded.tar.gz |
Sanitize values which look like credit cards
Diffstat (limited to 'tests/processors')
-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 901223d..2dfadd2 100644 --- a/tests/processors/tests.py +++ b/tests/processors/tests.py @@ -103,6 +103,11 @@ class SantizePasswordsProcessorTest(TestCase): http = result['sentry.interfaces.Http'] self.assertEquals(http['querystring'], 'foo=bar&password=%(m)s&the_secret=%(m)s&a_password_here=%(m)s' % dict(m=proc.MASK)) + def test_sanitize_credit_card(self): + proc = SanitizePasswordsProcessor(Mock()) + result = proc.sanitize('foo', '4242424242424242') + self.assertEquals(result, proc.MASK) + class RemovePostDataProcessorTest(TestCase): def test_does_remove_body(self): |