def test_context_processors(self):
        try:
            username = 'random_user'
            password = 'secret42'
            raise ValueError('foo bar')
        except:
            exc_info = sys.exc_info()

        # We raise a second event to ensure we actually reference
        # the first event
        try:
            raise SyntaxError('baz')
        except:
            pass

        # Exception pulls in sys.exc_info()
        # by default
        event_id = capture('Exception')

        event = Event.objects.get(event_id)
        self.assertTrue('sentry.interfaces.Stacktrace' in event.data)
        event_data = event.data['sentry.interfaces.Stacktrace']
        frame = event_data['frames'][0]
        self.assertEquals(frame['vars']['password'], '****************')
dataset/ETHPy150Open dcramer/sentry-old/tests/test_events.py/SentryTest.test_context_processors/original