'Reproduces [0] to make sure we don\'t make that mistake again.
[0] https://github.com/andresriancho/w3af/issues/1326'

@attr('moth')
def test_mangle_handler_raw_request_1326(self):

    http_request = 'GET    %s    HTTP/1.1\nHost:    localhost\nFoo:    bar\n'
    http_request %= get_moth_http()
    w3af_core = w3afCore()
    w3af_core.plugins.set_plugins(['sed'], 'mangle')
    w3af_core.plugins.init_plugins()
    resp = w3af_core.uri_opener.send_raw_request(http_request, None)
    self.assertEqual(resp.get_code(), 200)
