'Responses with a 204 status code have no default content-type applied.'

def test_noDefaultContentTypeOn204Response(self):

    resrc = NoContentResource()
    resrc.putChild('', resrc)
    site = server.Site(resrc)
    d = DummyChannel()
    d.site = site
    request = server.Request(d, 1)
    request.site = site
    request.setHost('example.com', 80)
    request.gotLength(0)
    request.requestReceived('GET', '/', 'HTTP/1.1')
    response = request.transport.written.getvalue()
    self.assertTrue(response.startswith('HTTP/1.1    204    No    Content\r\n'))
    self.assertNotIn('content-type', response.lower())
