summaryrefslogtreecommitdiffstats
path: root/todolists
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2018-04-22 20:31:17 +0200
committerJelle van der Waa <jelle@vdwaa.nl>2019-01-21 21:19:58 +0100
commit79ae9db6f3ce785de9b7bde95e46a710685f5f4a (patch)
tree3d1788c9ecc778552c76fe31eec4602c5231c1d4 /todolists
parentf56caf45c0a2c14b416af13482f5ce5ae5b27fdb (diff)
downloadarchweb-79ae9db6f3ce785de9b7bde95e46a710685f5f4a.tar.gz
archweb-79ae9db6f3ce785de9b7bde95e46a710685f5f4a.zip
todolists: tests: convert response.content to str
Network data is usually a bytes object while the todolist.name is a str.
Diffstat (limited to 'todolists')
-rw-r--r--todolists/tests/test_views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/todolists/tests/test_views.py b/todolists/tests/test_views.py
index 7a53d7c1..8c605bc3 100644
--- a/todolists/tests/test_views.py
+++ b/todolists/tests/test_views.py
@@ -21,12 +21,12 @@ class TestTodolist(TestCase):
def test_todolist_overview(self):
response = self.client.get('/todo/')
self.assertEqual(response.status_code, 200)
- self.assertIn(self.todolist.name, response.content)
+ self.assertIn(self.todolist.name, response.content.decode())
def test_todolist_detail(self):
response = self.client.get(self.todolist.get_absolute_url())
self.assertEqual(response.status_code, 200)
- self.assertIn(self.todolist.name, response.content)
+ self.assertIn(self.todolist.name, response.content.decode())
def test_todolist_json(self):
response = self.client.get(self.todolist.get_absolute_url() + 'json')