diff options
| author | Chris McDonough <chrism@plope.com> | 2010-10-29 17:13:19 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-10-29 17:13:19 -0400 |
| commit | fb52920afd55fc5221514502249d540c7e94e043 (patch) | |
| tree | 001dbc59a4a9cf4d7c0450519e87e338732cdd95 | |
| parent | 6a3184b3e02015ac3349d87c1f96a68827b47990 (diff) | |
| download | pyramid-fb52920afd55fc5221514502249d540c7e94e043.tar.gz pyramid-fb52920afd55fc5221514502249d540c7e94e043.tar.bz2 pyramid-fb52920afd55fc5221514502249d540c7e94e043.zip | |
coverage
| -rw-r--r-- | pyramid/tests/test_session.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pyramid/tests/test_session.py b/pyramid/tests/test_session.py index 07ca06c81..ff5c126cb 100644 --- a/pyramid/tests/test_session.py +++ b/pyramid/tests/test_session.py @@ -30,6 +30,13 @@ class TestInsecureCookieSession(unittest.TestCase): session = self._makeOne(request) self.assertEqual(dict(session), {}) + def test_ctor_with_bad_cookie(self): + request = testing.DummyRequest() + cookieval = 'abc' + request.cookies['session'] = cookieval + session = self._makeOne(request) + self.assertEqual(dict(session), {}) + def test_changed(self): request = testing.DummyRequest() session = self._makeOne(request) |
