Made expected output platform-independent in a test for the template postmortem debug 500 view so it doesn't fail under Windows.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16277 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Ramiro Morales 2011-05-24 21:33:32 +00:00
parent a482cc0ba3
commit 0065d8a120
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import inspect
import os
import sys
from django.conf import settings
@ -56,7 +57,8 @@ class DebugViewTests(TestCase):
def test_template_loader_postmortem(self):
response = self.client.get(reverse('raises_template_does_not_exist'))
self.assertContains(response, 'templates/i_dont_exist.html</code> (File does not exist)</li>', status_code=500)
template_path = os.path.join('templates', 'i_dont_exist.html')
self.assertContains(response, template_path, status_code=500)
class ExceptionReporterTests(TestCase):