fix broken tests

This commit is contained in:
jeffrey k eliasen 2018-10-22 19:43:15 -10:00
parent 9c23899017
commit e7c6cc4357

View File

@ -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'))