From e7c6cc435792d40b9bfe2d2bae3147cfc5dd9395 Mon Sep 17 00:00:00 2001 From: jeffrey k eliasen Date: Mon, 22 Oct 2018 19:43:15 -1000 Subject: [PATCH] fix broken tests --- tests/test_templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_templates.py b/tests/test_templates.py index 70c933d27..1142c4a45 100644 --- a/tests/test_templates.py +++ b/tests/test_templates.py @@ -8,4 +8,4 @@ def test_base_template_with_no_context(): # so it can be easily extended. result = render({}, 'rest_framework/base.html') # note that this response will not include a valid CSRF token - assert re.search(r'\bcsrfToken: ""', result.content) + assert re.search(r'\bcsrfToken: ""', result.content.decode('utf-8'))