def test_login_required_view(self):
        view_url = '/views/create_update/member/create/article/'
        response = self.client.get(view_url)
        self.assertRedirects(response, '/accounts/login/?next=%s' % view_url)
        # Now login and try again.
        login = self.client.login(username='testclient', password='password')
        self.assertTrue(login, 'Could not log in')
        response = self.client.get(view_url)
        self.assertEqual(response.status_code, 200)
        self.assertTemplateUsed(response, 'views/article_form.html')
Verifies that an unauthenticated user attempting to access a
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/tests/regressiontests/views/tests/generic/create_update.py/CreateObjectTest.test_login_required_view