      def tearDown(self):
          self.csrf_client.logout()
  
      def test_post_form_session_auth_failing_csrf(self):
          """
          Ensure POSTing form over session authentication without CSRF token fails.
          """
          self.csrf_client.login(username=self.username, password=self.password)
          response = self.csrf_client.post('/session/', {'example': 'example'})
 
</s> remove     )
 </s> add     ),
    url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')) </s> remove         url(r'^auth', include('rest_framework.urls', namespace='rest_framework'))
 </s> add         url(r'^auth/', include('rest_framework.urls', namespace='rest_framework'))
    def test_login_view_renders_on_get(self):
        """
        Ensure the login template renders for a basic GET.

        cf. [#1810](https://github.com/tomchristie/django-rest-framework/pull/1810)
        """
        response = self.csrf_client.get('/auth/login/')
        self.assertContains(response, '<Label class="span4">Username:</label>')


      def tearDown(self):
          self.csrf_client.logout()
  
    def test_login_view_renders_on_get(self):
        """
        Ensure the login template renders for a basic GET.

        cf. [#1810](https://github.com/tomchristie/django-rest-framework/pull/1810)
        """
        response = self.csrf_client.get('/auth/login/')
        self.assertContains(response, '<Label class="span4">Username:</label>')


      def test_post_form_session_auth_failing_csrf(self):
          """
          Ensure POSTing form over session authentication without CSRF token fails.
          """
          self.csrf_client.login(username=self.username, password=self.password)
          response = self.csrf_client.post('/session/', {'example': 'example'})
keep keep add keep keep keep keep keep keep
 Regression for #1810: Test login view renders 
tests/test_authentication.py