Skip to content

Instantly share code, notes, and snippets.

@glasgowm148
Created January 22, 2019 13:05
Show Gist options
  • Save glasgowm148/9856c40083ba0ab06c6a27001a288e17 to your computer and use it in GitHub Desktop.
Save glasgowm148/9856c40083ba0ab06c6a27001a288e17 to your computer and use it in GitHub Desktop.
======================================================================
ERROR: test_titles_displayed (rango.tests_chapter8.Chapter8ViewTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/markglasgow/Documents/GitHub/semtwo/WAD/2018/Workspace/tango_with_django_project/rango/tests_chapter8.py", line 76, in test_titles_displayed
self.assertIn('Add Category'.lower(), response.content.decode('ascii').lower())
File "/Users/markglasgow/anaconda3/envs/rango/lib/python3.7/unittest/case.py", line 1105, in assertIn
safe_repr(container))
TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment