File: 06_fix_regression_tests.diff

package info (click to toggle)
python-django 1.2.3-3%2Bsqueeze15
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 29,720 kB
  • ctags: 21,538
  • sloc: python: 101,631; xml: 574; makefile: 149; sh: 121; sql: 7
file content (16 lines) | stat: -rw-r--r-- 987 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: A second part of patch to update AdminDocsTest to fix test suite.
Source: upstream, http://code.djangoproject.com/changeset/13764

Index: /django/branches/releases/1.2.X/tests/regressiontests/admin_views/tests.py
===================================================================
--- a/tests/regressiontests/admin_views/tests.py (revision 13750)
+++ b/tests/regressiontests/admin_views/tests.py (revision 13764)
@@ -2211,6 +2211,6 @@
 
             # An app tag exists in both the index and detail
-            self.assertContains(response, '<h3 id="flatpages-get_flatpages">get_flatpages</h3>')
-            self.assertContains(response, '<li><a href="#flatpages-get_flatpages">get_flatpages</a></li>')
+            self.assertContains(response, '<h3 id="comments-get_comment_count">get_comment_count</h3>')
+            self.assertContains(response, '<li><a href="#comments-get_comment_count">get_comment_count</a></li>')
 
             # The admin list tag group exists