mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 11:30:12 +03:00
fix broken tests
This commit is contained in:
parent
9c23899017
commit
e7c6cc4357
|
@ -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'))
|
||||
|
|
Loading…
Reference in New Issue
Block a user