mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed spelling of "nonexistent".
This commit is contained in:
parent
a21ec12409
commit
29f607927f
47 changed files with 141 additions and 114 deletions
|
@ -150,14 +150,14 @@ class LogEntryTests(TestCase):
|
|||
def test_logentry_get_admin_url(self):
|
||||
"""
|
||||
LogEntry.get_admin_url returns a URL to edit the entry's object or
|
||||
None for non-existent (possibly deleted) models.
|
||||
None for nonexistent (possibly deleted) models.
|
||||
"""
|
||||
logentry = LogEntry.objects.get(content_type__model__iexact='article')
|
||||
expected_url = reverse('admin:admin_utils_article_change', args=(quote(self.a1.pk),))
|
||||
self.assertEqual(logentry.get_admin_url(), expected_url)
|
||||
self.assertIn('article/%d/change/' % self.a1.pk, logentry.get_admin_url())
|
||||
|
||||
logentry.content_type.model = "non-existent"
|
||||
logentry.content_type.model = "nonexistent"
|
||||
self.assertIsNone(logentry.get_admin_url())
|
||||
|
||||
def test_logentry_unicode(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue