mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #27953 -- Removed hardcoded uses of Model.__str__() in tests.
This commit is contained in:
committed by
Tim Graham
parent
0877989c94
commit
7c9cb1ed37
@@ -186,7 +186,7 @@ class ChangeListTests(TestCase):
|
||||
link = reverse('admin:admin_changelist_child_change', args=(new_child.id,))
|
||||
row_html = (
|
||||
'<tbody><tr class="row1"><th class="field-name"><a href="%s">name</a></th>'
|
||||
'<td class="field-parent nowrap">Parent object</td></tr></tbody>' % link
|
||||
'<td class="field-parent nowrap">%s</td></tr></tbody>' % (link, new_parent)
|
||||
)
|
||||
self.assertNotEqual(table_output.find(row_html), -1, 'Failed to find expected row element: %s' % table_output)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user