Permalink
Browse files

add a test for this branch's fix

  • Loading branch information...
1 parent 5ca1143 commit 1eba52a6e5f64ea18822476615bde90b4c40ab98 @mcdonc mcdonc committed Aug 25, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 pyramid_beaker/tests.py
View
2 pyramid_beaker/tests.py
@@ -147,6 +147,8 @@ def test_new_csrf_token(self):
session = self._makeOne(request)
token = session.new_csrf_token()
self.assertEqual(token, session['_csrft_'])
+ # make sure its not a bytestring on py3
+ self.assertTrue(str(token) == token)
def test_get_csrf_token(self):
request = DummyRequest()

0 comments on commit 1eba52a

Please sign in to comment.