Refs #19536 -- Tweaked test assertion to avoid collision with CSRF token.

This commit is contained in:
Tim Graham 2016-01-28 13:27:25 -05:00
parent 55481bcdee
commit e73fb2c9e1
1 changed files with 1 additions and 1 deletions

View File

@ -774,7 +774,7 @@ class ChangeListTests(TestCase):
response = m.changelist_view(request) response = m.changelist_view(request)
self.assertIn('<ul class="object-tools">', response.rendered_content) self.assertIn('<ul class="object-tools">', response.rendered_content)
# The "Add" button inside the object-tools shouldn't appear. # The "Add" button inside the object-tools shouldn't appear.
self.assertNotIn('Add', response.rendered_content) self.assertNotIn('Add ', response.rendered_content)
class AdminLogNodeTestCase(TestCase): class AdminLogNodeTestCase(TestCase):