There was already a test for this, but expecting the to_json method to return bytes, so I just altered it to expect a string, and decoded the output of base64.urlsafe_b64encode.
I ran the tests and they all passed on Python 3.5 - I'll let Travis test on other versions.
Fixes #120
There was already a test for this, but expecting the
to_json
method to returnbytes
, so I just altered it to expect a string, and decoded the output ofbase64.urlsafe_b64encode
.I ran the tests and they all passed on Python 3.5 - I'll let Travis test on other versions.