Commit bac5d7dd authored by ale's avatar ale

Fix base64 decoding in a Python test

parent 9b3c0f8b
import base64
import unittest
import sso
......@@ -12,7 +13,7 @@ class SignerTest(unittest.TestCase):
signed = self.s.sign(tkt)
self.assertTrue(isinstance(signed, basestring))
self.assertTrue(signed != '')
self.assertTrue('user' in signed.decode('base64'))
self.assertTrue('user' in base64.urlsafe_b64decode(signed))
def test_sign_ticket(self):
self._signok(sso.Ticket('user', 'service', 'domain'))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment