'Verify that the message generated by a L{Request} initialized with
the given method and C{None} as the C{bodyProducer} includes
I{Content-Length: 0} in the header.
@param method: The HTTP method issue in the request.
@type method: L{bytes}'

def _sendRequestEmptyBodyWithLength(self, method):

    request = Request(method, '/foo', _boringHeaders, None)
    request.writeTo(self.transport)
    self.assertEqual(self.transport.value(), (method + '    /foo    HTTP/1.1\r\nConnection:    close\r\nContent-Length:    0\r\nHost:    example.com\r\n\r\n'))
