  
          cf. [#1810](https://github.com/encode/django-rest-framework/pull/1810)
          """
          response = self.csrf_client.get('/auth/login/')
          content = response.content.decode('utf8')
          assert '<label for="id_username">Username:</label>' in content
  
      def test_post_form_session_auth_failing_csrf(self):
          """
          Ensure POSTing form over session authentication without CSRF token fails.
 
</s> remove         content = response.content.decode('utf8')
 </s> add         content = response.content.decode() </s> remove         content = response.content.decode('utf8')
 </s> add         content = response.content.decode() </s> remove         assert expected_error in response.rendered_content.decode('utf-8')
 </s> add         assert expected_error in response.rendered_content.decode() </s> remove         content = response.content.decode('utf8')
 </s> add         content = response.content.decode() </s> remove         content = response.content.decode('utf8')
 </s> add         content = response.content.decode()
        content = response.content.decode()
  
          cf. [#1810](https://github.com/encode/django-rest-framework/pull/1810)
          """
          response = self.csrf_client.get('/auth/login/')
        content = response.content.decode()
          assert '<label for="id_username">Username:</label>' in content
  
      def test_post_form_session_auth_failing_csrf(self):
          """
          Ensure POSTing form over session authentication without CSRF token fails.
keep keep keep keep replace keep keep keep keep keep
 Drop default 'utf-8' to .encode()/.decode() (#6633)

A Python 3 cleanup that allows for less noise in the code.

https://docs.python.org/3/library/stdtypes.html#bytes.decode
https://docs.python.org/3/library/stdtypes.html#str.encode 
tests/authentication/test_authentication.py