[Repoze-checkins] r1099 - in repoze.who/trunk: . repoze/who
Chris McDonough
chrism at agendaless.com
Mon Jun 16 20:55:25 EDT 2008
Author: Chris McDonough <chrism at agendaless.com>
Date: Mon Jun 16 20:55:24 2008
New Revision: 1099
Log:
Prep for 1.0.2.
Modified:
repoze.who/trunk/CHANGES.txt
repoze.who/trunk/repoze/who/tests.py
repoze.who/trunk/repoze/who/version.txt
Modified: repoze.who/trunk/CHANGES.txt
==============================================================================
--- repoze.who/trunk/CHANGES.txt (original)
+++ repoze.who/trunk/CHANGES.txt Mon Jun 16 20:55:24 2008
@@ -1,7 +1,7 @@
repoze.who changes
==================
-After 1.0.1
+1.0.2 (2008/06/16)
- Fix bug found by Chris Perkins: the auth_tkt plugin's "remember"
method didn't handle userids which are Python "long" instances
Modified: repoze.who/trunk/repoze/who/tests.py
==============================================================================
--- repoze.who/trunk/repoze/who/tests.py (original)
+++ repoze.who/trunk/repoze/who/tests.py Mon Jun 16 20:55:24 2008
@@ -646,10 +646,14 @@
result = ''.join(mw(environ, start_response))
self.failUnless(result.startswith('302 Found'))
self.assertEqual(start_response.status, '302 Found')
- self.assertEqual(start_response.headers,
- [('location', 'http://example.com/redirect'),
- ('content-type', 'text/plain'),
- ('a', '1')])
+ headers = start_response.headers
+ self.assertEqual(len(headers), 3)
+ self.assertEqual(headers[0],
+ ('location', 'http://example.com/redirect'))
+ self.assertEqual(headers[1],
+ ('content-type', 'text/plain; charset=utf8'))
+ self.assertEqual(headers[2],
+ ('a', '1'))
self.assertEqual(start_response.exc_info, None)
self.failIf(environ.has_key('repoze.who.application'))
@@ -1331,10 +1335,12 @@
self.assertEqual(parts[3], '')
self.assertEqual(came_from_key, 'came_from')
self.assertEqual(came_from_value, 'http://www.example.com/?default=1')
+ headers = sr.headers
+ self.assertEqual(len(headers), 3)
self.assertEqual(sr.headers[1][0], 'forget')
self.assertEqual(sr.headers[1][1], '1')
self.assertEqual(sr.headers[2][0], 'content-type')
- self.assertEqual(sr.headers[2][1], 'text/plain')
+ self.assertEqual(sr.headers[2][1], 'text/plain; charset=utf8')
self.assertEqual(sr.status, '302 Found')
def test_challenge_came_from_in_environ(self):
Modified: repoze.who/trunk/repoze/who/version.txt
==============================================================================
--- repoze.who/trunk/repoze/who/version.txt (original)
+++ repoze.who/trunk/repoze/who/version.txt Mon Jun 16 20:55:24 2008
@@ -1 +1 @@
-1.0.1
+1.0.2
More information about the Repoze-checkins
mailing list