1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +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:
Russell Keith-Magee
2011-04-02 13:27:17 +00:00
parent bcdbafc88a
commit 3b94af8a84
11 changed files with 38 additions and 41 deletions

View File

@@ -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)