

def test_authorization(self):
    self.headers.extend({
        'AUTHORIZATION': 'spam',
    })
    self.message = protocol.RawRequestMessage('GET', '/', (1, 1), self.headers, self.raw_headers, True, 'deflate')
    environ = self._make_one()
    self.assertEqual('spam', environ['HTTP_AUTHORIZATION'])

dataset/ETHPy150Open KeepSafe/aiohttp/tests/test_wsgi.py TestHttpWsgiServerProtocol.test_authorization/original