Skip to content

Commit

Permalink
Added an extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
rohe committed Sep 28, 2017
1 parent 78290d4 commit 2f57877
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_0_jwkest.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,12 @@ def test_b64_encode_decode():
assert b64d(b64e(data)) == data


def test_base64_long_base64():
x64 = 'omXjOQmHl77TtpwMXL9WPcd-Xcg1bh8CoLGOyX1Ug_CLtZJx_SvSo0bj5bEiVb8eCa5mXuc6sDg9_RRpCvKHHxZG6f9qh5r3ZNY-yr5hKQqeMafWa4b6UqouLSSwKsNe5FWD327BoyaEsMyCRheQg4wX86G_8zqynuvbT6KzQbQtp4iqQvMWGswovmflsk7zoZUESAFu6L5xlJUEFXMlDLPH13SsPKwvL4MgHa-Cx938B0FReUFtq7qEQHIPhGSTOeTS-v8Acp6VqkmcLB4kCIsk_Icr46VTEPv3WWDHcbSzp-RPR0lTa8WTdOd_E98U70jfAZJAKMDWr4sQkvfk7w'
_l = base64_to_long(x64)
r64 = long_to_base64(_l)
assert x64 == r64


if __name__ == "__main__":
test_long_base64_long()

0 comments on commit 2f57877

Please sign in to comment.