Exemplo n.º 1
0
def test_remove_http_request_body():
    data = {
        'context': {
            'request': {
                'body': 'foo'
            },
        }
    }

    result = processors.remove_http_request_body(None, data)

    assert 'request' in result['context']
    request = result['context']['request']
    assert 'body' not in request
Exemplo n.º 2
0
def test_remove_http_request_body(http_test_data):
    assert "body" in http_test_data["context"]["request"]

    result = processors.remove_http_request_body(None, http_test_data)

    assert "body" not in result["context"]["request"]
def test_remove_http_request_body(http_test_data):
    assert 'body' in http_test_data['context']['request']

    result = processors.remove_http_request_body(None, http_test_data)

    assert 'body' not in result['context']['request']