0001-python3-pick-url-b64-decoding-exception-in-oidc-auth.patch
tests/test_auth_oidc.py | ||
---|---|---|
4 | 4 |
import urlparse |
5 | 5 |
import json |
6 | 6 |
import time |
7 |
import six |
|
7 | 8 | |
8 | 9 |
from jwcrypto.jwk import JWKSet, JWK |
9 | 10 |
from jwcrypto.jwt import JWT |
... | ... | |
29 | 30 | |
30 | 31 | |
31 | 32 |
def test_base64url_decode(): |
32 |
with pytest.raises(TypeError): |
|
33 |
if six.PY2: |
|
34 |
Error = TypeError |
|
35 |
else: |
|
36 |
from binascii import Error |
|
37 |
with pytest.raises(Error): |
|
33 | 38 |
base64url_decode('x') |
34 | 39 |
base64url_decode('aa') |
35 | 40 | |
36 |
- |