mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #23919 -- Removed unneeded force_str calls
This commit is contained in:
parent
bf1c957027
commit
dc8834cad4
44 changed files with 100 additions and 167 deletions
|
@ -2,7 +2,6 @@ import datetime
|
|||
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
from django.test import TestCase, override_settings
|
||||
from django.utils.encoding import force_str
|
||||
from django.views.generic.base import View
|
||||
|
||||
from .models import Artist, Author, Book, Page
|
||||
|
@ -235,7 +234,7 @@ class ListViewTests(TestCase):
|
|||
self._make_authors(1)
|
||||
res = self.client.get('/list/authors/paginated/2/')
|
||||
self.assertEqual(res.status_code, 404)
|
||||
self.assertEqual(force_str(res.context.get('reason')), "Invalid page (2): That page contains no results")
|
||||
self.assertEqual(res.context.get('reason'), "Invalid page (2): That page contains no results")
|
||||
|
||||
def _make_authors(self, n):
|
||||
Author.objects.all().delete()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue