Author: kmtracey
Date: 2010-09-10 19:02:33 -0500 (Fri, 10 Sep 2010)
New Revision: 13737

Modified:
   django/trunk/tests/regressiontests/admin_views/tests.py
Log:
Adjust AdminDocTests to run after r13728. Also match comments to tests and add 
test that was there in comment form only.Refs #3695.



Modified: django/trunk/tests/regressiontests/admin_views/tests.py
===================================================================
--- django/trunk/tests/regressiontests/admin_views/tests.py     2010-09-10 
23:58:52 UTC (rev 13736)
+++ django/trunk/tests/regressiontests/admin_views/tests.py     2010-09-11 
00:02:33 UTC (rev 13737)
@@ -2228,16 +2228,19 @@
             self.assertContains(response, "<h2>Built-in tags</h2>", count=2)
 
             # A builtin tag exists in both the index and detail
-            self.assertContains(response, '<h3 
id="autoescape">autoescape</h3>')
-            self.assertContains(response, '<li><a 
href="#autoescape">autoescape</a></li>')
+            self.assertContains(response, '<h3 
id="built_in-autoescape">autoescape</h3>')
+            self.assertContains(response, '<li><a 
href="#built_in-autoescape">autoescape</a></li>')
 
             # An app tag exists in both the index and detail
-            # The builtin tag group exists
+            self.assertContains(response, '<h3 
id="flatpages-get_flatpages">get_flatpages</h3>')
+            self.assertContains(response, '<li><a 
href="#flatpages-get_flatpages">get_flatpages</a></li>')
+
+            # The admin list tag group exists
             self.assertContains(response, "<h2>admin_list</h2>", count=2)
 
-            # A builtin tag exists in both the index and detail
-            self.assertContains(response, '<h3 
id="autoescape">autoescape</h3>')
-            self.assertContains(response, '<li><a 
href="#admin_actions">admin_actions</a></li>')
+            # An admin list tag exists in both the index and detail
+            self.assertContains(response, '<h3 
id="admin_list-admin_actions">admin_actions</h3>')
+            self.assertContains(response, '<li><a 
href="#admin_list-admin_actions">admin_actions</a></li>')
 
         def test_filters(self):
             response = self.client.get('/test_admin/admin/doc/filters/')
@@ -2246,8 +2249,8 @@
             self.assertContains(response, "<h2>Built-in filters</h2>", count=2)
 
             # A builtin filter exists in both the index and detail
-            self.assertContains(response, '<h3 id="add">add</h3>')
-            self.assertContains(response, '<li><a href="#add">add</a></li>')
+            self.assertContains(response, '<h3 id="built_in-add">add</h3>')
+            self.assertContains(response, '<li><a 
href="#built_in-add">add</a></li>')
 
 except ImportError:
     pass

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to