'The C{\'CONTENT_TYPE\'} key of the C{environ} C{dict} passed to the
application is always a native string.'

def test_contentTypeIsNativeString(self):

    for contentType in ('x-foo/bar', u'x-foo/bar'):
        (request, result) = self.prepareRequest()
        request.requestHeaders.addRawHeader('Content-Type', contentType)
        request.requestReceived()
        result.addCallback(self.environKeyEqual('CONTENT_TYPE', 'x-foo/bar'))
        self.assertIsInstance(self.successResultOf(result), str)
