          assert '>Log out<' in content
  
      def test_login_shown_when_logged_out(self):
          response = self.client.get('/')
          content = response.content.decode('utf8')
          assert '>Log in<' in content
  
  
  @override_settings(ROOT_URLCONF='tests.browsable_api.no_auth_urls')
  class NoDropdownWithoutAuthTests(TestCase):
 
</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         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         content = response.content.decode('utf8')
 </s> add         content = response.content.decode()
        content = response.content.decode()
          assert '>Log out<' in content
  
      def test_login_shown_when_logged_out(self):
          response = self.client.get('/')
        content = response.content.decode()
          assert '>Log in<' in content
  
  
  @override_settings(ROOT_URLCONF='tests.browsable_api.no_auth_urls')
  class NoDropdownWithoutAuthTests(TestCase):
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/browsable_api/test_browsable_api.py