def test_does_remove_data(self): data = get_http_data() data['request']['data'] = 'foo' proc = RemovePostDataProcessor(Mock()) result = proc.process(data) self.assertTrue('request' in result) http = result['request'] self.assertFalse('data' in http)
def test_does_remove_data(self): data = get_http_data() data["request"]["data"] = "foo" proc = RemovePostDataProcessor(Mock()) result = proc.process(data) self.assertTrue("request" in result) http = result["request"] self.assertFalse("data" in http)
def test_does_remove_data(self): data = { 'sentry.interfaces.Http': { 'data': 'foo', } } proc = RemovePostDataProcessor(Mock()) result = proc.process(data) self.assertTrue('sentry.interfaces.Http' in result) http = result['sentry.interfaces.Http'] self.assertFalse('data' in http)
def test_does_remove_data(self): data = { 'request': { 'data': 'foo', } } proc = RemovePostDataProcessor(Mock()) result = proc.process(data) self.assertTrue('request' in result) http = result['request'] self.assertFalse('data' in http)