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'])
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'])