def test_http_1_0_no_host(self):
    headers = multidict.MultiDict({})
    self.message = protocol.RawRequestMessage('GET', '/', (1, 0), headers, [], True, 'deflate')
    environ = self._make_one()
    self.assertEqual(environ['SERVER_NAME'], '0.0.0.0')
    self.assertEqual(environ['SERVER_PORT'], '80')
def test_http_1_0_no_host(self):
    headers = multidict.MultiDict({})
    self.message = protocol.RawRequestMessage('GET', '/', (1, 0), headers, [], True, 'deflate')
    environ = self._make_one()
    self.assertEqual(environ['SERVER_NAME'], '0.0.0.0')
    self.assertEqual(environ['SERVER_PORT'], '80')