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

def test_serverProtocolIsNativeString(self):

    for serverProtocol in ('1.1', u'1.1'):
        (request, result) = self.prepareRequest()
        request.write = (lambda data: None)
        request.requestReceived(version='1.1')
        result.addCallback(self.environKeyEqual('SERVER_PROTOCOL', '1.1'))
        self.assertIsInstance(self.successResultOf(result), str)
