'Tests a more fully-featured GET request'

def test_extended(self):

    Channel(u'test').send({u'reply_channel': u'test', u'http_version': u'1.1', u'method': u'GET', u'path': u'/test2/', u'query_string': 'x=1&y=%26foo+bar%2Bbaz', u'headers': {u'host': 'example.com', u'cookie': 'test-time=1448995585123;    test-value=yeah'}, u'client': [u'10.0.0.1', 1234], u'server': [u'10.0.0.2', 80]}, immediately=True)
    request = AsgiRequest(self.get_next_message(u'test'))
    self.assertEqual(request.path, u'/test2/')
    self.assertEqual(request.method, u'GET')
    self.assertFalse(request.body)
    self.assertEqual(request.META[u'HTTP_HOST'], u'example.com')
    self.assertEqual(request.META[u'REMOTE_ADDR'], u'10.0.0.1')
    self.assertEqual(request.META[u'REMOTE_HOST'], u'10.0.0.1')
    self.assertEqual(request.META[u'REMOTE_PORT'], 1234)
    self.assertEqual(request.META[u'SERVER_NAME'], u'10.0.0.2')
    self.assertEqual(request.META[u'SERVER_PORT'], u'80')
    self.assertEqual(request.GET[u'x'], u'1')
    self.assertEqual(request.GET[u'y'], u'&foo    bar+baz')
    self.assertEqual(request.COOKIES[u'test-time'], u'1448995585123')
    self.assertEqual(request.COOKIES[u'test-value'], u'yeah')
    self.assertFalse(request.POST)
