def test(self):
     '''Test Django middleware.'''
     request = None
     
     m = DjangoInjectMiddleware()
     m.process_request(request)        
     m.process_response(request, None)
     
     raise AssertionError()
 def test_response(self):
     '''Test Django middleware response.'''
     m = DjangoInjectMiddleware()
     
     response = object()
     self.assertTrue(m.process_response(None, response) is response)