Mock Version: 1.3.4 Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-jwt.spec'], chrootPath='/var/lib/mock/epel7-build-12039755-888186/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-jwt.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False sh: /usr/bin/python2: No such file or directory sh: /usr/bin/python2: No such file or directory sh: /usr/bin/python2: No such file or directory sh: /usr/bin/python2: No such file or directory warning: Could not canonicalize hostname: buildvm-18.phx2.fedoraproject.org Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-jwt-1.6.1-1.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-jwt.spec'], chrootPath='/var/lib/mock/epel7-build-12039755-888186/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-jwt.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.SrHyPj + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pyjwt-1.6.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/pyjwt-1.6.1.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd pyjwt-1.6.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/disable-coverage-and-runner.patch + /usr/bin/patch -p1 -s + rm setup.cfg + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.M2MGHy + umask 022 + cd /builddir/build/BUILD + cd pyjwt-1.6.1 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' running build running build_py creating build creating build/lib creating build/lib/jwt copying jwt/api_jwt.py -> build/lib/jwt copying jwt/__main__.py -> build/lib/jwt copying jwt/api_jws.py -> build/lib/jwt copying jwt/utils.py -> build/lib/jwt copying jwt/__init__.py -> build/lib/jwt copying jwt/exceptions.py -> build/lib/jwt copying jwt/compat.py -> build/lib/jwt copying jwt/algorithms.py -> build/lib/jwt creating build/lib/jwt/contrib copying jwt/contrib/__init__.py -> build/lib/jwt/contrib creating build/lib/jwt/contrib/algorithms copying jwt/contrib/algorithms/pycrypto.py -> build/lib/jwt/contrib/algorithms copying jwt/contrib/algorithms/py_ecdsa.py -> build/lib/jwt/contrib/algorithms copying jwt/contrib/algorithms/__init__.py -> build/lib/jwt/contrib/algorithms + sleep 1 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + /usr/bin/python3.4 setup.py build '--executable=/usr/bin/python3.4 -s' running build running build_py + sleep 1 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.q1WhiT + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch ++ dirname /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch + cd pyjwt-1.6.1 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch running install running install_lib creating /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr creating /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib creating /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt copying build/lib/jwt/api_jwt.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt creating /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/contrib creating /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/contrib/algorithms copying build/lib/jwt/contrib/algorithms/pycrypto.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/contrib/algorithms copying build/lib/jwt/contrib/algorithms/py_ecdsa.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/contrib/algorithms copying build/lib/jwt/contrib/algorithms/__init__.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/contrib/algorithms copying build/lib/jwt/contrib/__init__.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/contrib copying build/lib/jwt/__main__.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt copying build/lib/jwt/api_jws.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt copying build/lib/jwt/utils.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt copying build/lib/jwt/__init__.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt copying build/lib/jwt/exceptions.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt copying build/lib/jwt/compat.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt copying build/lib/jwt/algorithms.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/api_jwt.py to api_jwt.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/contrib/algorithms/pycrypto.py to pycrypto.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/contrib/algorithms/py_ecdsa.py to py_ecdsa.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/contrib/algorithms/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/contrib/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/__main__.py to __main__.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/api_jws.py to api_jws.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/utils.py to utils.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/exceptions.py to exceptions.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/compat.py to compat.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/jwt/algorithms.py to algorithms.pyc writing byte-compilation script '/tmp/tmp0ZS1ku.py' /usr/bin/python2 -O /tmp/tmp0ZS1ku.py removing /tmp/tmp0ZS1ku.py running install_egg_info running egg_info creating PyJWT.egg-info writing requirements to PyJWT.egg-info/requires.txt writing PyJWT.egg-info/PKG-INFO writing top-level names to PyJWT.egg-info/top_level.txt writing dependency_links to PyJWT.egg-info/dependency_links.txt writing entry points to PyJWT.egg-info/entry_points.txt writing manifest file 'PyJWT.egg-info/SOURCES.txt' reading manifest file 'PyJWT.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' writing manifest file 'PyJWT.egg-info/SOURCES.txt' Copying PyJWT.egg-info to /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7/site-packages/PyJWT-1.6.1-py2.7.egg-info running install_scripts Installing pyjwt script to /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/bin + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + /usr/bin/python3.4 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch running install running install_lib creating /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4 creating /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages creating /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt copying build/lib/jwt/api_jwt.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt creating /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/contrib creating /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/contrib/algorithms copying build/lib/jwt/contrib/algorithms/pycrypto.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/contrib/algorithms copying build/lib/jwt/contrib/algorithms/py_ecdsa.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/contrib/algorithms copying build/lib/jwt/contrib/algorithms/__init__.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/contrib/algorithms copying build/lib/jwt/contrib/__init__.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/contrib copying build/lib/jwt/__main__.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt copying build/lib/jwt/api_jws.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt copying build/lib/jwt/utils.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt copying build/lib/jwt/__init__.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt copying build/lib/jwt/exceptions.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt copying build/lib/jwt/compat.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt copying build/lib/jwt/algorithms.py -> /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/api_jwt.py to api_jwt.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/contrib/algorithms/pycrypto.py to pycrypto.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/contrib/algorithms/py_ecdsa.py to py_ecdsa.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/contrib/algorithms/__init__.py to __init__.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/contrib/__init__.py to __init__.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/__main__.py to __main__.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/api_jws.py to api_jws.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/utils.py to utils.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/__init__.py to __init__.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/exceptions.py to exceptions.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/compat.py to compat.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/jwt/algorithms.py to algorithms.cpython-34.pyc writing byte-compilation script '/tmp/tmponubluxo.py' /usr/bin/python3.4 -O /tmp/tmponubluxo.py removing /tmp/tmponubluxo.py running install_egg_info running egg_info writing entry points to PyJWT.egg-info/entry_points.txt writing PyJWT.egg-info/PKG-INFO writing requirements to PyJWT.egg-info/requires.txt writing dependency_links to PyJWT.egg-info/dependency_links.txt writing top-level names to PyJWT.egg-info/top_level.txt reading manifest file 'PyJWT.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' writing manifest file 'PyJWT.egg-info/SOURCES.txt' Copying PyJWT.egg-info to /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4/site-packages/PyJWT-1.6.1-py3.4.egg-info running install_scripts Installing pyjwt script to /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/bin + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/pyjwt-1.6.1 /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python2.7 using /usr/bin/python2.7 Bytecompiling .py files below /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/lib/python3.4 using /usr/bin/python3.4 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.PspT6f + umask 022 + cd /builddir/build/BUILD + cd pyjwt-1.6.1 + py.test-2.7 --verbose ============================= test session starts ============================== platform linux2 -- Python 2.7.5 -- py-1.4.32 -- pytest-2.7.0 -- /usr/bin/python rootdir: /builddir/build/BUILD/pyjwt-1.6.1, inifile: collecting ... collected 188 items tests/test_algorithms.py::TestAlgorithms::test_algorithm_should_throw_exception_if_prepare_key_not_impl PASSED tests/test_algorithms.py::TestAlgorithms::test_algorithm_should_throw_exception_if_sign_not_impl PASSED tests/test_algorithms.py::TestAlgorithms::test_algorithm_should_throw_exception_if_verify_not_impl PASSED tests/test_algorithms.py::TestAlgorithms::test_algorithm_should_throw_exception_if_to_jwk_not_impl PASSED tests/test_algorithms.py::TestAlgorithms::test_algorithm_should_throw_exception_if_from_jwk_not_impl PASSED tests/test_algorithms.py::TestAlgorithms::test_none_algorithm_should_throw_exception_if_key_is_not_none PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_should_reject_nonstring_key PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_should_accept_unicode_key PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_should_throw_exception_if_key_is_pem_public_key PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_should_throw_exception_if_key_is_x509_certificate PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_should_throw_exception_if_key_is_ssh_public_key PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_should_throw_exception_if_key_is_x509_cert PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_should_throw_exception_if_key_is_pkcs1_pem_public PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_jwk_should_parse_and_verify PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_to_jwk_returns_correct_values PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_from_jwk_should_raise_exception_if_not_hmac_key PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_should_parse_pem_public_key PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_should_accept_pem_private_key_bytes PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_should_accept_unicode_key PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_should_reject_non_string_key PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_verify_should_return_false_if_signature_invalid PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_public_and_private_keys_should_parse_and_verify PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_private_key_to_jwk_works_with_from_jwk PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_public_key_to_jwk_works_with_from_jwk PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_private_key_with_other_primes_is_invalid PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_private_key_with_missing_values_is_invalid PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_private_key_can_recover_prime_factors PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_private_key_with_missing_required_values_is_invalid PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_raises_exception_if_not_a_valid_key PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_to_jwk_returns_correct_values_for_public_key PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_to_jwk_returns_correct_values_for_private_key PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_to_jwk_raises_exception_on_invalid_key PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_from_jwk_raises_exception_on_invalid_key PASSED tests/test_algorithms.py::TestAlgorithms::test_ec_should_reject_non_string_key PASSED tests/test_algorithms.py::TestAlgorithms::test_ec_should_accept_unicode_key PASSED tests/test_algorithms.py::TestAlgorithms::test_ec_should_accept_pem_private_key_bytes PASSED tests/test_algorithms.py::TestAlgorithms::test_ec_should_accept_ssh_public_key_bytes PASSED tests/test_algorithms.py::TestAlgorithms::test_ec_verify_should_return_false_if_signature_invalid PASSED tests/test_algorithms.py::TestAlgorithms::test_ec_verify_should_return_false_if_signature_wrong_length PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_pss_sign_then_verify_should_return_true PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_pss_verify_should_return_false_if_signature_invalid PASSED tests/test_algorithms.py::TestAlgorithmsRFC7520::test_hmac_verify_should_return_true_for_test_vector PASSED tests/test_algorithms.py::TestAlgorithmsRFC7520::test_rsa_verify_should_return_true_for_test_vector PASSED tests/test_algorithms.py::TestAlgorithmsRFC7520::test_rsapss_verify_should_return_true_for_test_vector PASSED tests/test_algorithms.py::TestAlgorithmsRFC7520::test_ec_verify_should_return_true_for_test_vector PASSED tests/test_api_jws.py::TestJWS::test_register_algo_does_not_allow_duplicate_registration PASSED tests/test_api_jws.py::TestJWS::test_register_algo_rejects_non_algorithm_obj PASSED tests/test_api_jws.py::TestJWS::test_unregister_algo_removes_algorithm PASSED tests/test_api_jws.py::TestJWS::test_unregister_algo_throws_error_if_not_registered PASSED tests/test_api_jws.py::TestJWS::test_algo_parameter_removes_alg_from_algorithms_list PASSED tests/test_api_jws.py::TestJWS::test_override_options PASSED tests/test_api_jws.py::TestJWS::test_non_object_options_dont_persist PASSED tests/test_api_jws.py::TestJWS::test_options_must_be_dict PASSED tests/test_api_jws.py::TestJWS::test_encode_decode PASSED tests/test_api_jws.py::TestJWS::test_decode_fails_when_alg_is_not_on_method_algorithms_param PASSED tests/test_api_jws.py::TestJWS::test_decode_works_with_unicode_token PASSED tests/test_api_jws.py::TestJWS::test_decode_missing_segments_throws_exception PASSED tests/test_api_jws.py::TestJWS::test_decode_invalid_token_type_is_none PASSED tests/test_api_jws.py::TestJWS::test_decode_invalid_token_type_is_int PASSED tests/test_api_jws.py::TestJWS::test_decode_with_non_mapping_header_throws_exception PASSED tests/test_api_jws.py::TestJWS::test_encode_algorithm_param_should_be_case_sensitive PASSED tests/test_api_jws.py::TestJWS::test_decode_algorithm_param_should_be_case_sensitive PASSED tests/test_api_jws.py::TestJWS::test_bad_secret PASSED tests/test_api_jws.py::TestJWS::test_decodes_valid_jws PASSED tests/test_api_jws.py::TestJWS::test_decodes_valid_es384_jws PASSED tests/test_api_jws.py::TestJWS::test_decodes_valid_rs384_jws PASSED tests/test_api_jws.py::TestJWS::test_load_verify_valid_jws PASSED tests/test_api_jws.py::TestJWS::test_allow_skip_verification PASSED tests/test_api_jws.py::TestJWS::test_verify_false_deprecated PASSED tests/test_api_jws.py::TestJWS::test_decode_with_optional_algorithms PASSED tests/test_api_jws.py::TestJWS::test_decode_no_algorithms_verify_signature_false PASSED tests/test_api_jws.py::TestJWS::test_load_no_verification PASSED tests/test_api_jws.py::TestJWS::test_no_secret PASSED tests/test_api_jws.py::TestJWS::test_verify_signature_with_no_secret PASSED tests/test_api_jws.py::TestJWS::test_verify_signature_with_no_algo_header_throws_exception PASSED tests/test_api_jws.py::TestJWS::test_invalid_crypto_alg PASSED tests/test_api_jws.py::TestJWS::test_missing_crypto_library_better_error_messages SKIPPED tests/test_api_jws.py::TestJWS::test_unicode_secret PASSED tests/test_api_jws.py::TestJWS::test_nonascii_secret PASSED tests/test_api_jws.py::TestJWS::test_bytes_secret PASSED tests/test_api_jws.py::TestJWS::test_decode_invalid_header_padding PASSED tests/test_api_jws.py::TestJWS::test_decode_invalid_header_string PASSED tests/test_api_jws.py::TestJWS::test_decode_invalid_payload_padding PASSED tests/test_api_jws.py::TestJWS::test_decode_invalid_crypto_padding PASSED tests/test_api_jws.py::TestJWS::test_decode_with_algo_none_should_fail PASSED tests/test_api_jws.py::TestJWS::test_decode_with_algo_none_and_verify_false_should_pass PASSED tests/test_api_jws.py::TestJWS::test_get_unverified_header_returns_header_values PASSED tests/test_api_jws.py::TestJWS::test_get_unverified_header_fails_on_bad_header_types PASSED tests/test_api_jws.py::TestJWS::test_encode_decode_with_rsa_sha256 PASSED tests/test_api_jws.py::TestJWS::test_encode_decode_with_rsa_sha384 PASSED tests/test_api_jws.py::TestJWS::test_encode_decode_with_rsa_sha512 PASSED tests/test_api_jws.py::TestJWS::test_rsa_related_algorithms PASSED tests/test_api_jws.py::TestJWS::test_encode_decode_with_ecdsa_sha256 PASSED tests/test_api_jws.py::TestJWS::test_encode_decode_with_ecdsa_sha384 PASSED tests/test_api_jws.py::TestJWS::test_encode_decode_with_ecdsa_sha512 PASSED tests/test_api_jws.py::TestJWS::test_ecdsa_related_algorithms PASSED tests/test_api_jws.py::TestJWS::test_skip_check_signature PASSED tests/test_api_jws.py::TestJWS::test_decode_options_must_be_dict PASSED tests/test_api_jws.py::TestJWS::test_custom_json_encoder PASSED tests/test_api_jws.py::TestJWS::test_encode_headers_parameter_adds_headers PASSED tests/test_api_jws.py::TestJWS::test_encode_fails_on_invalid_kid_types PASSED tests/test_api_jwt.py::TestJWT::test_decodes_valid_jwt PASSED tests/test_api_jwt.py::TestJWT::test_load_verify_valid_jwt PASSED tests/test_api_jwt.py::TestJWT::test_decode_invalid_payload_string PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_non_mapping_payload_throws_exception PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_invalid_audience_param_throws_exception PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_nonlist_aud_claim_throws_exception PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_invalid_aud_list_member_throws_exception PASSED tests/test_api_jwt.py::TestJWT::test_encode_bad_type PASSED tests/test_api_jwt.py::TestJWT::test_decode_raises_exception_if_exp_is_not_int PASSED tests/test_api_jwt.py::TestJWT::test_decode_raises_exception_if_iat_is_not_int PASSED tests/test_api_jwt.py::TestJWT::test_decode_raises_exception_if_nbf_is_not_int PASSED tests/test_api_jwt.py::TestJWT::test_encode_datetime PASSED tests/test_api_jwt.py::TestJWT::test_decodes_valid_es384_jwt PASSED tests/test_api_jwt.py::TestJWT::test_decodes_valid_rs384_jwt PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_expiration PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_notbefore PASSED tests/test_api_jwt.py::TestJWT::test_decode_skip_expiration_verification PASSED tests/test_api_jwt.py::TestJWT::test_decode_skip_notbefore_verification PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_expiration_with_leeway PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_notbefore_with_leeway PASSED tests/test_api_jwt.py::TestJWT::test_check_audience_when_valid PASSED tests/test_api_jwt.py::TestJWT::test_check_audience_list_when_valid PASSED tests/test_api_jwt.py::TestJWT::test_check_audience_none_specified PASSED tests/test_api_jwt.py::TestJWT::test_raise_exception_invalid_audience_list PASSED tests/test_api_jwt.py::TestJWT::test_check_audience_in_array_when_valid PASSED tests/test_api_jwt.py::TestJWT::test_raise_exception_invalid_audience PASSED tests/test_api_jwt.py::TestJWT::test_raise_exception_invalid_audience_in_array PASSED tests/test_api_jwt.py::TestJWT::test_raise_exception_token_without_issuer PASSED tests/test_api_jwt.py::TestJWT::test_raise_exception_token_without_audience PASSED tests/test_api_jwt.py::TestJWT::test_check_issuer_when_valid PASSED tests/test_api_jwt.py::TestJWT::test_raise_exception_invalid_issuer PASSED tests/test_api_jwt.py::TestJWT::test_skip_check_audience PASSED tests/test_api_jwt.py::TestJWT::test_skip_check_exp PASSED tests/test_api_jwt.py::TestJWT::test_decode_should_raise_error_if_exp_required_but_not_present PASSED tests/test_api_jwt.py::TestJWT::test_decode_should_raise_error_if_iat_required_but_not_present PASSED tests/test_api_jwt.py::TestJWT::test_decode_should_raise_error_if_nbf_required_but_not_present PASSED tests/test_api_jwt.py::TestJWT::test_skip_check_signature PASSED tests/test_api_jwt.py::TestJWT::test_skip_check_iat PASSED tests/test_api_jwt.py::TestJWT::test_skip_check_nbf PASSED tests/test_api_jwt.py::TestJWT::test_custom_json_encoder PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_verify_expiration_kwarg PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_optional_algorithms PASSED tests/test_api_jwt.py::TestJWT::test_decode_no_algorithms_verify_false PASSED tests/test_cli.py::TestCli::test_build_argparse PASSED tests/test_cli.py::TestCli::test_encode_payload_raises_value_error_key_is_required PASSED tests/test_cli.py::TestCli::test_decode_payload_raises_decoded_error PASSED tests/test_cli.py::TestCli::test_decode_payload_raises_decoded_error_isatty PASSED tests/test_cli.py::TestCli::test_decode_payload_terminal_tty PASSED tests/test_cli.py::TestCli::test_decode_payload_raises_terminal_not_a_tty PASSED tests/test_cli.py::TestCli::test_encode_decode[1234-Vader-Sith-None-None] PASSED tests/test_cli.py::TestCli::test_encode_decode[4567-Anakin-Jedi-+1-None] PASSED tests/test_cli.py::TestCli::test_encode_decode[4321-Padme-Queen-4070926800-true] PASSED tests/test_cli.py::TestCli::test_main[1234-Vader-Sith-None-None] PASSED tests/test_cli.py::TestCli::test_main[4567-Anakin-Jedi-+1-None] PASSED tests/test_cli.py::TestCli::test_main[4321-Padme-Queen-4070926800-true] PASSED tests/test_cli.py::TestCli::test_main_throw_exception PASSED tests/test_compat.py::TestCompat::test_constant_time_compare_returns_true_if_same PASSED tests/test_compat.py::TestCompat::test_constant_time_compare_returns_false_if_diff_lengths PASSED tests/test_compat.py::TestCompat::test_constant_time_compare_returns_false_if_totally_different PASSED tests/test_exceptions.py::test_missing_required_claim_error_has_proper_str PASSED tests/test_jwt.py::test_encode_decode PASSED tests/test_utils.py::test_to_base64url_uint[0-AA] PASSED tests/test_utils.py::test_to_base64url_uint[1-AQ] PASSED tests/test_utils.py::test_to_base64url_uint[255-_w] PASSED tests/test_utils.py::test_to_base64url_uint[65537-AQAB] PASSED tests/test_utils.py::test_to_base64url_uint[123456789-B1vNFQ] PASSED tests/test_utils.py::test_to_base64url_uint[-1-] xfail tests/test_utils.py::test_from_base64url_uint[AA-0] PASSED tests/test_utils.py::test_from_base64url_uint[AQ-1] PASSED tests/test_utils.py::test_from_base64url_uint[_w-255] PASSED tests/test_utils.py::test_from_base64url_uint[AQAB-65537] PASSED tests/test_utils.py::test_from_base64url_uint[B1vNFQ-123456789] PASSED tests/test_utils.py::test_force_unicode_raises_error_on_invalid_object PASSED tests/test_utils.py::test_force_bytes_raises_error_on_invalid_object PASSED tests/contrib/test_algorithms.py::TestPycryptoAlgorithms::test_rsa_should_parse_pem_public_key SKIPPED tests/contrib/test_algorithms.py::TestPycryptoAlgorithms::test_rsa_should_accept_unicode_key SKIPPED tests/contrib/test_algorithms.py::TestPycryptoAlgorithms::test_rsa_should_reject_non_string_key SKIPPED tests/contrib/test_algorithms.py::TestPycryptoAlgorithms::test_rsa_sign_should_generate_correct_signature_value SKIPPED tests/contrib/test_algorithms.py::TestPycryptoAlgorithms::test_rsa_verify_should_return_false_if_signature_invalid SKIPPED tests/contrib/test_algorithms.py::TestPycryptoAlgorithms::test_rsa_verify_should_return_true_if_signature_valid SKIPPED tests/contrib/test_algorithms.py::TestPycryptoAlgorithms::test_rsa_prepare_key_should_be_idempotent SKIPPED tests/contrib/test_algorithms.py::TestEcdsaAlgorithms::test_ec_should_reject_non_string_key SKIPPED tests/contrib/test_algorithms.py::TestEcdsaAlgorithms::test_ec_should_accept_unicode_key SKIPPED tests/contrib/test_algorithms.py::TestEcdsaAlgorithms::test_ec_sign_should_generate_correct_signature_value SKIPPED tests/contrib/test_algorithms.py::TestEcdsaAlgorithms::test_ec_verify_should_return_false_if_signature_invalid SKIPPED tests/contrib/test_algorithms.py::TestEcdsaAlgorithms::test_ec_verify_should_return_true_if_signature_valid SKIPPED tests/contrib/test_algorithms.py::TestEcdsaAlgorithms::test_ec_prepare_key_should_be_idempotent SKIPPED ============== 173 passed, 14 skipped, 1 xfailed in 0.71 seconds =============== + py.test-3.4 --verbose ============================= test session starts ============================== platform linux -- Python 3.4.5, pytest-2.8.5, py-1.4.30, pluggy-0.3.1 -- /usr/bin/python3.4 cachedir: .cache rootdir: /builddir/build/BUILD/pyjwt-1.6.1, inifile: collecting ... collected 188 items tests/test_algorithms.py::TestAlgorithms::test_algorithm_should_throw_exception_if_prepare_key_not_impl PASSED tests/test_algorithms.py::TestAlgorithms::test_algorithm_should_throw_exception_if_sign_not_impl PASSED tests/test_algorithms.py::TestAlgorithms::test_algorithm_should_throw_exception_if_verify_not_impl PASSED tests/test_algorithms.py::TestAlgorithms::test_algorithm_should_throw_exception_if_to_jwk_not_impl PASSED tests/test_algorithms.py::TestAlgorithms::test_algorithm_should_throw_exception_if_from_jwk_not_impl PASSED tests/test_algorithms.py::TestAlgorithms::test_none_algorithm_should_throw_exception_if_key_is_not_none PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_should_reject_nonstring_key PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_should_accept_unicode_key PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_should_throw_exception_if_key_is_pem_public_key PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_should_throw_exception_if_key_is_x509_certificate PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_should_throw_exception_if_key_is_ssh_public_key PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_should_throw_exception_if_key_is_x509_cert PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_should_throw_exception_if_key_is_pkcs1_pem_public PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_jwk_should_parse_and_verify PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_to_jwk_returns_correct_values PASSED tests/test_algorithms.py::TestAlgorithms::test_hmac_from_jwk_should_raise_exception_if_not_hmac_key PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_should_parse_pem_public_key PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_should_accept_pem_private_key_bytes PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_should_accept_unicode_key PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_should_reject_non_string_key PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_verify_should_return_false_if_signature_invalid PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_public_and_private_keys_should_parse_and_verify PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_private_key_to_jwk_works_with_from_jwk PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_public_key_to_jwk_works_with_from_jwk PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_private_key_with_other_primes_is_invalid PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_private_key_with_missing_values_is_invalid PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_private_key_can_recover_prime_factors PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_private_key_with_missing_required_values_is_invalid PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_raises_exception_if_not_a_valid_key PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_to_jwk_returns_correct_values_for_public_key PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_to_jwk_returns_correct_values_for_private_key PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_to_jwk_raises_exception_on_invalid_key PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_from_jwk_raises_exception_on_invalid_key PASSED tests/test_algorithms.py::TestAlgorithms::test_ec_should_reject_non_string_key PASSED tests/test_algorithms.py::TestAlgorithms::test_ec_should_accept_unicode_key PASSED tests/test_algorithms.py::TestAlgorithms::test_ec_should_accept_pem_private_key_bytes PASSED tests/test_algorithms.py::TestAlgorithms::test_ec_should_accept_ssh_public_key_bytes PASSED tests/test_algorithms.py::TestAlgorithms::test_ec_verify_should_return_false_if_signature_invalid PASSED tests/test_algorithms.py::TestAlgorithms::test_ec_verify_should_return_false_if_signature_wrong_length PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_pss_sign_then_verify_should_return_true PASSED tests/test_algorithms.py::TestAlgorithms::test_rsa_pss_verify_should_return_false_if_signature_invalid PASSED tests/test_algorithms.py::TestAlgorithmsRFC7520::test_hmac_verify_should_return_true_for_test_vector PASSED tests/test_algorithms.py::TestAlgorithmsRFC7520::test_rsa_verify_should_return_true_for_test_vector PASSED tests/test_algorithms.py::TestAlgorithmsRFC7520::test_rsapss_verify_should_return_true_for_test_vector PASSED tests/test_algorithms.py::TestAlgorithmsRFC7520::test_ec_verify_should_return_true_for_test_vector PASSED tests/test_api_jws.py::TestJWS::test_register_algo_does_not_allow_duplicate_registration PASSED tests/test_api_jws.py::TestJWS::test_register_algo_rejects_non_algorithm_obj PASSED tests/test_api_jws.py::TestJWS::test_unregister_algo_removes_algorithm PASSED tests/test_api_jws.py::TestJWS::test_unregister_algo_throws_error_if_not_registered PASSED tests/test_api_jws.py::TestJWS::test_algo_parameter_removes_alg_from_algorithms_list PASSED tests/test_api_jws.py::TestJWS::test_override_options PASSED tests/test_api_jws.py::TestJWS::test_non_object_options_dont_persist PASSED tests/test_api_jws.py::TestJWS::test_options_must_be_dict PASSED tests/test_api_jws.py::TestJWS::test_encode_decode PASSED tests/test_api_jws.py::TestJWS::test_decode_fails_when_alg_is_not_on_method_algorithms_param PASSED tests/test_api_jws.py::TestJWS::test_decode_works_with_unicode_token PASSED tests/test_api_jws.py::TestJWS::test_decode_missing_segments_throws_exception PASSED tests/test_api_jws.py::TestJWS::test_decode_invalid_token_type_is_none PASSED tests/test_api_jws.py::TestJWS::test_decode_invalid_token_type_is_int PASSED tests/test_api_jws.py::TestJWS::test_decode_with_non_mapping_header_throws_exception PASSED tests/test_api_jws.py::TestJWS::test_encode_algorithm_param_should_be_case_sensitive PASSED tests/test_api_jws.py::TestJWS::test_decode_algorithm_param_should_be_case_sensitive PASSED tests/test_api_jws.py::TestJWS::test_bad_secret PASSED tests/test_api_jws.py::TestJWS::test_decodes_valid_jws PASSED tests/test_api_jws.py::TestJWS::test_decodes_valid_es384_jws PASSED tests/test_api_jws.py::TestJWS::test_decodes_valid_rs384_jws PASSED tests/test_api_jws.py::TestJWS::test_load_verify_valid_jws PASSED tests/test_api_jws.py::TestJWS::test_allow_skip_verification PASSED tests/test_api_jws.py::TestJWS::test_verify_false_deprecated PASSED tests/test_api_jws.py::TestJWS::test_decode_with_optional_algorithms PASSED tests/test_api_jws.py::TestJWS::test_decode_no_algorithms_verify_signature_false PASSED tests/test_api_jws.py::TestJWS::test_load_no_verification PASSED tests/test_api_jws.py::TestJWS::test_no_secret PASSED tests/test_api_jws.py::TestJWS::test_verify_signature_with_no_secret PASSED tests/test_api_jws.py::TestJWS::test_verify_signature_with_no_algo_header_throws_exception PASSED tests/test_api_jws.py::TestJWS::test_invalid_crypto_alg PASSED tests/test_api_jws.py::TestJWS::test_missing_crypto_library_better_error_messages SKIPPED tests/test_api_jws.py::TestJWS::test_unicode_secret PASSED tests/test_api_jws.py::TestJWS::test_nonascii_secret PASSED tests/test_api_jws.py::TestJWS::test_bytes_secret PASSED tests/test_api_jws.py::TestJWS::test_decode_invalid_header_padding PASSED tests/test_api_jws.py::TestJWS::test_decode_invalid_header_string PASSED tests/test_api_jws.py::TestJWS::test_decode_invalid_payload_padding PASSED tests/test_api_jws.py::TestJWS::test_decode_invalid_crypto_padding PASSED tests/test_api_jws.py::TestJWS::test_decode_with_algo_none_should_fail PASSED tests/test_api_jws.py::TestJWS::test_decode_with_algo_none_and_verify_false_should_pass PASSED tests/test_api_jws.py::TestJWS::test_get_unverified_header_returns_header_values PASSED tests/test_api_jws.py::TestJWS::test_get_unverified_header_fails_on_bad_header_types PASSED tests/test_api_jws.py::TestJWS::test_encode_decode_with_rsa_sha256 PASSED tests/test_api_jws.py::TestJWS::test_encode_decode_with_rsa_sha384 PASSED tests/test_api_jws.py::TestJWS::test_encode_decode_with_rsa_sha512 PASSED tests/test_api_jws.py::TestJWS::test_rsa_related_algorithms PASSED tests/test_api_jws.py::TestJWS::test_encode_decode_with_ecdsa_sha256 PASSED tests/test_api_jws.py::TestJWS::test_encode_decode_with_ecdsa_sha384 PASSED tests/test_api_jws.py::TestJWS::test_encode_decode_with_ecdsa_sha512 PASSED tests/test_api_jws.py::TestJWS::test_ecdsa_related_algorithms PASSED tests/test_api_jws.py::TestJWS::test_skip_check_signature PASSED tests/test_api_jws.py::TestJWS::test_decode_options_must_be_dict PASSED tests/test_api_jws.py::TestJWS::test_custom_json_encoder PASSED tests/test_api_jws.py::TestJWS::test_encode_headers_parameter_adds_headers PASSED tests/test_api_jws.py::TestJWS::test_encode_fails_on_invalid_kid_types PASSED tests/test_api_jwt.py::TestJWT::test_decodes_valid_jwt PASSED tests/test_api_jwt.py::TestJWT::test_load_verify_valid_jwt PASSED tests/test_api_jwt.py::TestJWT::test_decode_invalid_payload_string PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_non_mapping_payload_throws_exception PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_invalid_audience_param_throws_exception PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_nonlist_aud_claim_throws_exception PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_invalid_aud_list_member_throws_exception PASSED tests/test_api_jwt.py::TestJWT::test_encode_bad_type PASSED tests/test_api_jwt.py::TestJWT::test_decode_raises_exception_if_exp_is_not_int PASSED tests/test_api_jwt.py::TestJWT::test_decode_raises_exception_if_iat_is_not_int PASSED tests/test_api_jwt.py::TestJWT::test_decode_raises_exception_if_nbf_is_not_int PASSED tests/test_api_jwt.py::TestJWT::test_encode_datetime PASSED tests/test_api_jwt.py::TestJWT::test_decodes_valid_es384_jwt PASSED tests/test_api_jwt.py::TestJWT::test_decodes_valid_rs384_jwt PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_expiration PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_notbefore PASSED tests/test_api_jwt.py::TestJWT::test_decode_skip_expiration_verification PASSED tests/test_api_jwt.py::TestJWT::test_decode_skip_notbefore_verification PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_expiration_with_leeway PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_notbefore_with_leeway PASSED tests/test_api_jwt.py::TestJWT::test_check_audience_when_valid PASSED tests/test_api_jwt.py::TestJWT::test_check_audience_list_when_valid PASSED tests/test_api_jwt.py::TestJWT::test_check_audience_none_specified PASSED tests/test_api_jwt.py::TestJWT::test_raise_exception_invalid_audience_list PASSED tests/test_api_jwt.py::TestJWT::test_check_audience_in_array_when_valid PASSED tests/test_api_jwt.py::TestJWT::test_raise_exception_invalid_audience PASSED tests/test_api_jwt.py::TestJWT::test_raise_exception_invalid_audience_in_array PASSED tests/test_api_jwt.py::TestJWT::test_raise_exception_token_without_issuer PASSED tests/test_api_jwt.py::TestJWT::test_raise_exception_token_without_audience PASSED tests/test_api_jwt.py::TestJWT::test_check_issuer_when_valid PASSED tests/test_api_jwt.py::TestJWT::test_raise_exception_invalid_issuer PASSED tests/test_api_jwt.py::TestJWT::test_skip_check_audience PASSED tests/test_api_jwt.py::TestJWT::test_skip_check_exp PASSED tests/test_api_jwt.py::TestJWT::test_decode_should_raise_error_if_exp_required_but_not_present PASSED tests/test_api_jwt.py::TestJWT::test_decode_should_raise_error_if_iat_required_but_not_present PASSED tests/test_api_jwt.py::TestJWT::test_decode_should_raise_error_if_nbf_required_but_not_present PASSED tests/test_api_jwt.py::TestJWT::test_skip_check_signature PASSED tests/test_api_jwt.py::TestJWT::test_skip_check_iat PASSED tests/test_api_jwt.py::TestJWT::test_skip_check_nbf PASSED tests/test_api_jwt.py::TestJWT::test_custom_json_encoder PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_verify_expiration_kwarg PASSED tests/test_api_jwt.py::TestJWT::test_decode_with_optional_algorithms PASSED tests/test_api_jwt.py::TestJWT::test_decode_no_algorithms_verify_false PASSED tests/test_cli.py::TestCli::test_build_argparse PASSED tests/test_cli.py::TestCli::test_encode_payload_raises_value_error_key_is_required PASSED tests/test_cli.py::TestCli::test_decode_payload_raises_decoded_error PASSED tests/test_cli.py::TestCli::test_decode_payload_raises_decoded_error_isatty PASSED tests/test_cli.py::TestCli::test_decode_payload_terminal_tty PASSED tests/test_cli.py::TestCli::test_decode_payload_raises_terminal_not_a_tty PASSED tests/test_cli.py::TestCli::test_encode_decode[1234-Vader-Sith-None-None] PASSED tests/test_cli.py::TestCli::test_encode_decode[4567-Anakin-Jedi-+1-None] PASSED tests/test_cli.py::TestCli::test_encode_decode[4321-Padme-Queen-4070926800-true] PASSED tests/test_cli.py::TestCli::test_main[1234-Vader-Sith-None-None] PASSED tests/test_cli.py::TestCli::test_main[4567-Anakin-Jedi-+1-None] PASSED tests/test_cli.py::TestCli::test_main[4321-Padme-Queen-4070926800-true] PASSED tests/test_cli.py::TestCli::test_main_throw_exception PASSED tests/test_compat.py::TestCompat::test_constant_time_compare_returns_true_if_same PASSED tests/test_compat.py::TestCompat::test_constant_time_compare_returns_false_if_diff_lengths PASSED tests/test_compat.py::TestCompat::test_constant_time_compare_returns_false_if_totally_different PASSED tests/test_exceptions.py::test_missing_required_claim_error_has_proper_str PASSED tests/test_jwt.py::test_encode_decode PASSED tests/test_utils.py::test_to_base64url_uint[0-AA] PASSED tests/test_utils.py::test_to_base64url_uint[1-AQ] PASSED tests/test_utils.py::test_to_base64url_uint[255-_w] PASSED tests/test_utils.py::test_to_base64url_uint[65537-AQAB] PASSED tests/test_utils.py::test_to_base64url_uint[123456789-B1vNFQ] PASSED tests/test_utils.py::test_to_base64url_uint[-1-] xfail tests/test_utils.py::test_from_base64url_uint[AA-0] PASSED tests/test_utils.py::test_from_base64url_uint[AQ-1] PASSED tests/test_utils.py::test_from_base64url_uint[_w-255] PASSED tests/test_utils.py::test_from_base64url_uint[AQAB-65537] PASSED tests/test_utils.py::test_from_base64url_uint[B1vNFQ-123456789] PASSED tests/test_utils.py::test_force_unicode_raises_error_on_invalid_object PASSED tests/test_utils.py::test_force_bytes_raises_error_on_invalid_object PASSED tests/contrib/test_algorithms.py::TestPycryptoAlgorithms::test_rsa_should_parse_pem_public_key SKIPPED tests/contrib/test_algorithms.py::TestPycryptoAlgorithms::test_rsa_should_accept_unicode_key SKIPPED tests/contrib/test_algorithms.py::TestPycryptoAlgorithms::test_rsa_should_reject_non_string_key SKIPPED tests/contrib/test_algorithms.py::TestPycryptoAlgorithms::test_rsa_sign_should_generate_correct_signature_value SKIPPED tests/contrib/test_algorithms.py::TestPycryptoAlgorithms::test_rsa_verify_should_return_false_if_signature_invalid SKIPPED tests/contrib/test_algorithms.py::TestPycryptoAlgorithms::test_rsa_verify_should_return_true_if_signature_valid SKIPPED tests/contrib/test_algorithms.py::TestPycryptoAlgorithms::test_rsa_prepare_key_should_be_idempotent SKIPPED tests/contrib/test_algorithms.py::TestEcdsaAlgorithms::test_ec_should_reject_non_string_key SKIPPED tests/contrib/test_algorithms.py::TestEcdsaAlgorithms::test_ec_should_accept_unicode_key SKIPPED tests/contrib/test_algorithms.py::TestEcdsaAlgorithms::test_ec_sign_should_generate_correct_signature_value SKIPPED tests/contrib/test_algorithms.py::TestEcdsaAlgorithms::test_ec_verify_should_return_false_if_signature_invalid SKIPPED tests/contrib/test_algorithms.py::TestEcdsaAlgorithms::test_ec_verify_should_return_true_if_signature_valid SKIPPED tests/contrib/test_algorithms.py::TestEcdsaAlgorithms::test_ec_prepare_key_should_be_idempotent SKIPPED ============== 173 passed, 14 skipped, 1 xfailed in 0.79 seconds =============== + exit 0 Processing files: python2-jwt-1.6.1-1.el7.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.WcWBKH + umask 022 + cd /builddir/build/BUILD + cd pyjwt-1.6.1 + DOCDIR=/builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/share/doc/python-jwt + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/share/doc/python-jwt + cp -pr README.rst /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/share/doc/python-jwt + cp -pr AUTHORS /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/share/doc/python-jwt + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.oMWnp9 + umask 022 + cd /builddir/build/BUILD + cd pyjwt-1.6.1 + LICENSEDIR=/builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/share/licenses/python-jwt + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/share/licenses/python-jwt + cp -pr LICENSE /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/share/licenses/python-jwt + exit 0 Provides: python-jwt = 1.6.1-1.el7 python2-jwt = 1.6.1-1.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 2.7 Obsoletes: python-jwt < 1.6.1-1.el7 Processing files: python34-jwt-1.6.1-1.el7.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.wMJ1RB + umask 022 + cd /builddir/build/BUILD + cd pyjwt-1.6.1 + DOCDIR=/builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/share/doc/python-jwt + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/share/doc/python-jwt + cp -pr README.rst /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/share/doc/python-jwt + cp -pr AUTHORS /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/share/doc/python-jwt + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.BoVCl4 + umask 022 + cd /builddir/build/BUILD + cd pyjwt-1.6.1 + LICENSEDIR=/builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/share/licenses/python-jwt + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/share/licenses/python-jwt + cp -pr LICENSE /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch/usr/share/licenses/python-jwt + exit 0 Provides: python34-jwt = 1.6.1-1.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python3.4 python(abi) = 3.4 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch warning: Could not canonicalize hostname: buildvm-18.phx2.fedoraproject.org Wrote: /builddir/build/RPMS/python2-jwt-1.6.1-1.el7.noarch.rpm Wrote: /builddir/build/RPMS/python34-jwt-1.6.1-1.el7.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.qXDovu + umask 022 + cd /builddir/build/BUILD + cd pyjwt-1.6.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-jwt-1.6.1-1.el7.noarch + exit 0 Child return code was: 0