  
      def test_name_shown_when_logged_in(self):
          self.client.login(username=self.username, password=self.password)
          response = self.client.get('/')
          content = response.content.decode('utf8')
          assert 'john' in content
  
      def test_logout_shown_when_logged_in(self):
          self.client.login(username=self.username, password=self.password)
          response = self.client.get('/')
 
</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()
  
      def test_name_shown_when_logged_in(self):
          self.client.login(username=self.username, password=self.password)
          response = self.client.get('/')
        content = response.content.decode()
          assert 'john' in content
  
      def test_logout_shown_when_logged_in(self):
          self.client.login(username=self.username, password=self.password)
          response = self.client.get('/')
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