From 506d559876b80a1d9fe86b94573952be6a0b3d6d Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Sat, 11 Sep 2010 00:02:33 +0000 Subject: [PATCH] Adjust AdminDocTests to run after r13728. Also match comments to tests and add test that was there in comment form only.Refs #3695. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13737 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/admin_views/tests.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/tests/regressiontests/admin_views/tests.py b/tests/regressiontests/admin_views/tests.py index 80319f0329..725369a5b1 100644 --- a/tests/regressiontests/admin_views/tests.py +++ b/tests/regressiontests/admin_views/tests.py @@ -2228,16 +2228,19 @@ try: self.assertContains(response, "

Built-in tags

", count=2) # A builtin tag exists in both the index and detail - self.assertContains(response, '

autoescape

') - self.assertContains(response, '
  • autoescape
  • ') + self.assertContains(response, '

    autoescape

    ') + self.assertContains(response, '
  • autoescape
  • ') # An app tag exists in both the index and detail - # The builtin tag group exists + self.assertContains(response, '

    get_flatpages

    ') + self.assertContains(response, '
  • get_flatpages
  • ') + + # The admin list tag group exists self.assertContains(response, "

    admin_list

    ", count=2) - # A builtin tag exists in both the index and detail - self.assertContains(response, '

    autoescape

    ') - self.assertContains(response, '
  • admin_actions
  • ') + # An admin list tag exists in both the index and detail + self.assertContains(response, '

    admin_actions

    ') + self.assertContains(response, '
  • admin_actions
  • ') def test_filters(self): response = self.client.get('/test_admin/admin/doc/filters/') @@ -2246,8 +2249,8 @@ try: self.assertContains(response, "

    Built-in filters

    ", count=2) # A builtin filter exists in both the index and detail - self.assertContains(response, '

    add

    ') - self.assertContains(response, '
  • add
  • ') + self.assertContains(response, '

    add

    ') + self.assertContains(response, '
  • add
  • ') except ImportError: pass