diff options
| author | Reed OBrien <reed@koansys.com> | 2009-03-19 01:12:09 +0000 |
|---|---|---|
| committer | Reed OBrien <reed@koansys.com> | 2009-03-19 01:12:09 +0000 |
| commit | 384f0767c8cd4573491cdea7eeab339ecda53ae7 (patch) | |
| tree | 16df4de4811311df7efac060eacc5cbd97fa4b1c | |
| parent | 464109ad3f7969d31aac3afa94a2da21334b2e64 (diff) | |
| download | pyramid-384f0767c8cd4573491cdea7eeab339ecda53ae7.tar.gz pyramid-384f0767c8cd4573491cdea7eeab339ecda53ae7.tar.bz2 pyramid-384f0767c8cd4573491cdea7eeab339ecda53ae7.zip | |
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)
-----
| -rw-r--r-- | repoze/bfg/paster_templates/starter/+package+/tests.py_tmpl | 2 | ||||
| -rw-r--r-- | 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)))) |
