File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ def test_post_error_root_view(self):
153
153
request = factory .post ('/' , data , HTTP_ACCEPT = 'text/html' )
154
154
response = self .view (request ).render ()
155
155
expected_error = '<span class="help-block">Ensure this field has no more than 100 characters.</span>'
156
- self .assertIn (expected_error , response .rendered_content )
156
+ self .assertIn (expected_error , response .rendered_content . decode ( 'utf-8' ) )
157
157
158
158
159
159
EXPECTED_QUERIES_FOR_PUT = 3 if django .VERSION < (1 , 6 ) else 2
@@ -300,7 +300,7 @@ def test_put_error_instance_view(self):
300
300
request = factory .put ('/' , data , HTTP_ACCEPT = 'text/html' )
301
301
response = self .view (request , pk = 1 ).render ()
302
302
expected_error = '<span class="help-block">Ensure this field has no more than 100 characters.</span>'
303
- self .assertIn (expected_error , response .rendered_content )
303
+ self .assertIn (expected_error , response .rendered_content . decode ( 'utf-8' ) )
304
304
305
305
306
306
class TestFKInstanceView (TestCase ):
You can’t perform that action at this time.
0 commit comments