Kaydet (Commit) e73fb2c9 authored tarafından Tim Graham's avatar Tim Graham

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

üst 55481bcd
...@@ -774,7 +774,7 @@ class ChangeListTests(TestCase): ...@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment