From 384f0767c8cd4573491cdea7eeab339ecda53ae7 Mon Sep 17 00:00:00 2001 From: Reed OBrien Date: Thu, 19 Mar 2009 01:12:09 +0000 Subject: Looks like WebOb Response now uses capitolized Content-Type. So this updates the paster template tests so they pass again. ----- r7827 | ianb | 2009-03-11 14:58:38 -0400 (Wed, 11 Mar 2009) | 1 line Use Content-Type consistently (not content-type) ----- --- repoze/bfg/paster_templates/starter/+package+/tests.py_tmpl | 2 +- repoze/bfg/paster_templates/zodb/+package+/tests.py_tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/repoze/bfg/paster_templates/starter/+package+/tests.py_tmpl b/repoze/bfg/paster_templates/starter/+package+/tests.py_tmpl index de40c37af..47524f344 100644 --- a/repoze/bfg/paster_templates/starter/+package+/tests.py_tmpl +++ b/repoze/bfg/paster_templates/starter/+package+/tests.py_tmpl @@ -68,7 +68,7 @@ class ViewIntegrationTests(unittest.TestCase): self.failUnless('Welcome to' in body) self.assertEqual(len(result.headerlist), 2) self.assertEqual(result.headerlist[0], - ('content-type', 'text/html; charset=UTF-8')) + ('Content-Type', 'text/html; charset=UTF-8')) self.assertEqual(result.headerlist[1], ('Content-Length', str(len(body)))) diff --git a/repoze/bfg/paster_templates/zodb/+package+/tests.py_tmpl b/repoze/bfg/paster_templates/zodb/+package+/tests.py_tmpl index de40c37af..47524f344 100644 --- a/repoze/bfg/paster_templates/zodb/+package+/tests.py_tmpl +++ b/repoze/bfg/paster_templates/zodb/+package+/tests.py_tmpl @@ -68,7 +68,7 @@ class ViewIntegrationTests(unittest.TestCase): self.failUnless('Welcome to' in body) self.assertEqual(len(result.headerlist), 2) self.assertEqual(result.headerlist[0], - ('content-type', 'text/html; charset=UTF-8')) + ('Content-Type', 'text/html; charset=UTF-8')) self.assertEqual(result.headerlist[1], ('Content-Length', str(len(body)))) -- cgit v1.2.3