summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.txt2
-rw-r--r--repoze/bfg/testing.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index d4dd9efea..acab4a605 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,7 @@
Next release
+ - Add content_length attribute to testing.DummyRequest.
+
- Change paster template ``tests.py`` to include a true unit test.
Retain old test as an integration test. Update documentation.
diff --git a/repoze/bfg/testing.py b/repoze/bfg/testing.py
index a7fc12827..cec14ea06 100644
--- a/repoze/bfg/testing.py
+++ b/repoze/bfg/testing.py
@@ -256,6 +256,7 @@ class DummyRequest:
method = 'GET'
application_url = 'http://example.com'
host = 'example.com:80'
+ content_length = 0
def __init__(self, params=None, environ=None, headers=None, path='/',
cookies=None, **kw):
if environ is None: