Making the url test more verbose. Adding an initial list of urls to test.

- Legacy-Id: 217
This commit is contained in:
Henrik Levkowetz 2007-06-03 21:21:29 +00:00
parent 4cfe601ed7
commit c7230247b1
3 changed files with 45 additions and 0 deletions

View file

@ -3,6 +3,7 @@ import django.utils.html
from django.shortcuts import render_to_response as render from django.shortcuts import render_to_response as render
from django.utils.html import escape from django.utils.html import escape
from ietf.ipr.view_sections import section_table from ietf.ipr.view_sections import section_table
from ietf.ipr.view_new import new
def linebreaks(value): def linebreaks(value):
if value: if value:

View file

@ -47,5 +47,6 @@ class UrlTestCase(TestCase):
def testUrls(self): def testUrls(self):
for code, testurl, goodurl in self.testurls: for code, testurl, goodurl in self.testurls:
response = self.client.get(testurl) response = self.client.get(testurl)
print "%s %s" % (response.status_code, testurl)
self.assertEqual(response.status_code, code, "Unexpected response code from URL '%s'" % (testurl)) self.assertEqual(response.status_code, code, "Unexpected response code from URL '%s'" % (testurl))
# TODO: Add comparison with goodurl # TODO: Add comparison with goodurl

43
ietf/testurl.list Normal file
View file

@ -0,0 +1,43 @@
200 /
200 /accounts/
200 /admin
200 /announcements/
200 /idindex/
200 /idindex/showdocs/all/date/
200 /idindex/showdocs/all/name/
200 /idindex/showdocs/current/date/
200 /idindex/showdocs/current/name/
200 /idindex/showdocs/rfc/date/
200 /idindex/showdocs/rfc/name/
200 /idindex/showdocs/dead/date/
200 /idindex/showdocs/dead/name/
200 /idindex/wglist/A/
200 /idindex/wglist/adslmib/
200 /idindex/wglist/pwe3/
200 /idindex/wglist/Z/
200 /idindex/inddocs/B/
200 /idindex/inddocs/Y/
200 /idindex/otherdocs/iab/
200 /iesg/telechat/
200 /iesg/telechat/2006/
200 /iesg/telechat/2006/feb/
200 /iesg/telechat/detail/365/
200 /iesg/ann/detail/
200 /iesg/ann/independent/$
200 /iesg/ann/ietf-doc/recent/
200 /iesg/ann/ietf-doc/previous/
200 /ipr/
200 /ipr/ipr-657/
200 /ipr/ipr-787/
200 /ipr/ipr-795/
200 /ipr/new-generic/
200 /ipr/new-specific/
200 /ipr/new-third-party/
200 /liaisons/
200 /liaisons/329/
200 /mailing-lists/area-lists/
200 /mailing-lists/nonwg-lists/
200 /mailing-lists/nonwg-lists/submit/
200 /mailing-lists/request/
200 /mailing-lists/area-lists/
200 /meeting/