'Tests that the handler can decode the most basic request message,
with all optional fields omitted.'

def test_basic(self):

    Channel(u'test').send({u'reply_channel': u'test-reply', u'http_version': u'1.1', u'method': u'GET', u'path': u'/test/'}, immediately=True)
    request = AsgiRequest(self.get_next_message(u'test'))
    self.assertEqual(request.path, u'/test/')
    self.assertEqual(request.method, u'GET')
    self.assertFalse(request.body)
    self.assertNotIn(u'HTTP_HOST', request.META)
    self.assertNotIn(u'REMOTE_ADDR', request.META)
    self.assertNotIn(u'REMOTE_HOST', request.META)
    self.assertNotIn(u'REMOTE_PORT', request.META)
    self.assertIn(u'SERVER_NAME', request.META)
    self.assertIn(u'SERVER_PORT', request.META)
    self.assertFalse(request.GET)
    self.assertFalse(request.POST)
    self.assertFalse(request.COOKIES)
