1. Anthony Menasse
  2. django-current-user

Commits

Anthony Menasse  committed 78890d2

removed duplicate comments from tests

  • Participants
  • Parent commits 3d12884
  • Branches default

Comments (0)

Files changed (1)

File current_user/tests/tests.py

View file
         middleware= CurrentUserMiddleware()
         middleware.process_request(request)
 
-        # after request goes through the middleware object creation on the example
-        # model should set the objects CreateUserField to request.user
-
         example = ExampleProxy.objects.create(foo=1293)
         self.assertEquals(example.last_user,self.user)
 
         middleware = CreateUserMiddleware()
         middleware.process_request(request)
 
-        # after request goes through the middleware object creation on the example
-        # model should set the objects CreateUserField to request.user
-
         example = ExampleModel.objects.create(foo=1293)
         self.assertEquals(example.created_by,self.user)
 
         response = HttpResponse()
 
-        # ensure the ``update_user`` receiver gets disconnected from the signal
         self.assertEquals(len(signals.pre_save.receivers),1)
         middleware.process_response(request,response)
         self.assertEquals(signals.pre_save.receivers,[])
         middleware= CreateUserMiddleware()
         middleware.process_request(request)
 
-        # after request goes through the middleware object creation on the example
-        # model should set the objects CreateUserField to request.user
-
         example = ExampleProxy.objects.create(foo=1293)
         self.assertEquals(example.created_by,self.user)
 
 
         response = HttpResponse()
 
-        # ensure the ``update_users`` receivers get disconnected from the pre_save signal
         self.assertEquals(len(signals.pre_save.receivers),2)
 
         for middleware in middlewares: