mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Modified some regression tests to make them independent of the default root urlconf.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15999 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
bcdbafc88a
commit
3b94af8a84
11 changed files with 38 additions and 41 deletions
|
@ -16,6 +16,8 @@ EXPIRED_ETAG = '7fae4cd4b0f81e7d2914700043aa8ed6'
|
|||
|
||||
|
||||
class ConditionalGet(TestCase):
|
||||
urls = 'regressiontests.conditional_processing.urls'
|
||||
|
||||
def assertFullResponse(self, response, check_last_modified=True, check_etag=True):
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response.content, FULL_RESPONSE)
|
||||
|
|
|
@ -2,9 +2,9 @@ from django.conf.urls.defaults import *
|
|||
import views
|
||||
|
||||
urlpatterns = patterns('',
|
||||
('^$', views.index),
|
||||
('^last_modified/$', views.last_modified_view1),
|
||||
('^last_modified2/$', views.last_modified_view2),
|
||||
('^etag/$', views.etag_view1),
|
||||
('^etag2/$', views.etag_view2),
|
||||
('^condition/$', views.index),
|
||||
('^condition/last_modified/$', views.last_modified_view1),
|
||||
('^condition/last_modified2/$', views.last_modified_view2),
|
||||
('^condition/etag/$', views.etag_view1),
|
||||
('^condition/etag2/$', views.etag_view2),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue