'If the contents of the ``X-Eliot-Task-Id`` header are malformed,
processing continues as normal and logging of the request still
happens.'

@capture_logging(_assertRequestLogged('/foo/bar', 'GET'))
def test_malformed_task(self, logger):

    app = self.Application()
    app.logger = logger
    request = dummyRequest('GET', '/foo/bar', Headers({'X-Eliot-Task-Id': ['garbage!']}), '')
    render(app.app.resource(), request)
    self.assertTrue(app.called)
