diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-04-13 21:01:40 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-04-13 21:01:40 +0000 |
| commit | 168c10641aecba898616c01a25091b745362e366 (patch) | |
| tree | d6e5805aed242588f785708fc9325682b859c440 /repoze/bfg/testing.py | |
| parent | b6cef5185dcb4e9ff6c26c378f65590daaa8d828 (diff) | |
| download | pyramid-168c10641aecba898616c01a25091b745362e366.tar.gz pyramid-168c10641aecba898616c01a25091b745362e366.tar.bz2 pyramid-168c10641aecba898616c01a25091b745362e366.zip | |
Revert r4137: it's making the test fixtures too complicated.
Diffstat (limited to 'repoze/bfg/testing.py')
| -rw-r--r-- | repoze/bfg/testing.py | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/repoze/bfg/testing.py b/repoze/bfg/testing.py index e8164bfb9..1ad8ddf17 100644 --- a/repoze/bfg/testing.py +++ b/repoze/bfg/testing.py @@ -346,14 +346,14 @@ class DummyRequest: cookies = {} self.environ = environ self.headers = headers - self.params = FauxMultiDict(params) + self.params = params self.cookies = cookies - self.GET = FauxMultiDict(params) + self.GET = params if post is not None: self.method = 'POST' self.POST = post else: - self.POST = FauxMultiDict(params) + self.POST = params self.host_url = self.application_url self.path_url = self.application_url self.url = self.application_url @@ -368,17 +368,3 @@ class DummyRequest: self.marshalled = params # repoze.monty self.__dict__.update(kw) -class FauxMultiDict(dict): - """ GET, POST, and params attrs of WebOb requests are not actually - dictionaries; they are 'multi dicts', which means in the actual - implementation they can have more than one value per key. We fake - out a multidict here, although our implementation does not allow - for more than one value per key. """ - def getall(self, key): - """ Return a single-valued sequence containing the value for - key, e.g. ['value'].""" - val = self.get(key, _marker) - if val is _marker: - return [] - return [val] - |
