@@ -2206,16 +2206,19 @@ def test_tags(self):
2206
2206
self .assertContains (response , "<h2>Built-in tags</h2>" , count = 2 )
2207
2207
2208
2208
# A builtin tag exists in both the index and detail
2209
- self .assertContains (response , '<h3 id="autoescape">autoescape</h3>' )
2210
- self .assertContains (response , '<li><a href="#autoescape">autoescape</a></li>' )
2209
+ self .assertContains (response , '<h3 id="built_in- autoescape">autoescape</h3>' )
2210
+ self .assertContains (response , '<li><a href="#built_in- autoescape">autoescape</a></li>' )
2211
2211
2212
2212
# An app tag exists in both the index and detail
2213
- # The builtin tag group exists
2213
+ self .assertContains (response , '<h3 id="flatpages-get_flatpages">get_flatpages</h3>' )
2214
+ self .assertContains (response , '<li><a href="#flatpages-get_flatpages">get_flatpages</a></li>' )
2215
+
2216
+ # The admin list tag group exists
2214
2217
self .assertContains (response , "<h2>admin_list</h2>" , count = 2 )
2215
2218
2216
- # A builtin tag exists in both the index and detail
2217
- self .assertContains (response , '<h3 id="autoescape">autoescape </h3>' )
2218
- self .assertContains (response , '<li><a href="#admin_actions">admin_actions</a></li>' )
2219
+ # An admin list tag exists in both the index and detail
2220
+ self .assertContains (response , '<h3 id="admin_list-admin_actions">admin_actions </h3>' )
2221
+ self .assertContains (response , '<li><a href="#admin_list- admin_actions">admin_actions</a></li>' )
2219
2222
2220
2223
def test_filters (self ):
2221
2224
response = self .client .get ('/test_admin/admin/doc/filters/' )
@@ -2224,8 +2227,8 @@ def test_filters(self):
2224
2227
self .assertContains (response , "<h2>Built-in filters</h2>" , count = 2 )
2225
2228
2226
2229
# A builtin filter exists in both the index and detail
2227
- self .assertContains (response , '<h3 id="add">add</h3>' )
2228
- self .assertContains (response , '<li><a href="#add">add</a></li>' )
2230
+ self .assertContains (response , '<h3 id="built_in- add">add</h3>' )
2231
+ self .assertContains (response , '<li><a href="#built_in- add">add</a></li>' )
2229
2232
2230
2233
except ImportError :
2231
2234
pass
0 commit comments