I\'m trying to build a test for a view that\'s decorated with @login_required, since I failed to make it work, I did a simple test and still can\'t make it pass.
Her
OK I was to facing same problem @resto solved my problem.
creating user this way below, lets the test client get the user logged in and get the response other than redirect (302)
self.user = User.objects.create_user('john', 'lennon@thebeatles.com', 'johnpassword')