'Similar to L{test_etagMatched}, but the response should include a
I{Content-Type} header if the application explicitly sets one.
This I{Content-Type} header SHOULD NOT be present according to RFC 2616,
section 10.3.5.  It will only be present if the application explicitly
sets it.'

def test_unmodifiedWithContentType(self):

    for line in ['GET    /with-content-type    HTTP/1.1', 'If-None-Match:    MatchingTag', '']:
        self.channel.dataReceived((line + '\r\n'))
    result = self.transport.getvalue()
    self.assertEqual(httpCode(result), http.NOT_MODIFIED)
    self.assertEqual(httpBody(result), '')
    self.assertEqual(httpHeader(result, 'Content-Type'), 'image/jpeg')
