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-httpretty.spec'], env={'PS1': ' \\s-\\v\\$ ', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'SHELL': '/bin/bash', 'TERM': 'vt100', 'HOME': '/builddir', 'HOSTNAME': 'mock'}user='mockbuild'printOutput=Falselogger=timeout=172800uid=1000gid=425chrootPath='/var/lib/mock/f28-build-10033611-790907/root'shell=Falsenspawn_args=[]) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-httpretty.spec'] with env {'PS1': ' \\s-\\v\\$ ', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'SHELL': '/bin/bash', 'TERM': 'vt100', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False warning: Macro expanded in comment on line 26: %{version}.tar.gz warning: Macro expanded in comment on line 26: %{version}.tar.gz sh: /usr/bin/python: No such file or directory sh: /usr/bin/python: No such file or directory Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-httpretty.spec'], env={'PS1': ' \\s-\\v\\$ ', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'SHELL': '/bin/bash', 'TERM': 'vt100', 'HOME': '/builddir', 'HOSTNAME': 'mock'}user='mockbuild'printOutput=Falselogger=timeout=172800uid=1000gid=425chrootPath='/var/lib/mock/f28-build-10033611-790907/root'shell=Falsenspawn_args=[]) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-httpretty.spec'] with env {'PS1': ' \\s-\\v\\$ ', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'SHELL': '/bin/bash', 'TERM': 'vt100', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False warning: Macro expanded in comment on line 26: %{version}.tar.gz warning: Macro expanded in comment on line 26: %{version}.tar.gz Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.LmHUKx + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + /usr/bin/gzip -dc /builddir/build/SOURCES/HTTPretty-70af1f8.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/pr313.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/314.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/python-httpretty-fakesock_getpeercert_noconnect.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-Handle-bugs-in-older-urllib3-versions-in-one-of-the-.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-Call-reset-from-setUp-and-tearDown-in-addition-to-en.patch + sed -i -e 's/==.*//g' development.txt test-requirements.txt requirements.txt + sed -i -e 's/requests\[security\]/requests/g' development.txt + sed -i -e '/^coverage/d' development.txt test-requirements.txt + sed -i -r -e '/^(S|s)phinx/d' development.txt + sed -i -e '/^rednose/d' development.txt + sed -i -e '/^nose-randomly/d' development.txt + sed -i -e '/^flake8/d' development.txt + sed -i -e '/^ipdb/d' development.txt + rm tests/unit/test_passthrough.py + rm -rf /builddir/build/BUILD/python3-python-httpretty-0.8.14-6.20161011git70af1f8.fc28 + cp -a . /builddir/build/BUILD/python3-python-httpretty-0.8.14-6.20161011git70af1f8.fc28 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.mAv8sL + umask 022 + cd /builddir/build/BUILD + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + LANG=en_US.UTF-8 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mcpu=power8 -mtune=power8' + /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' running build running build_py creating build creating build/lib creating build/lib/httpretty copying httpretty/compat.py -> build/lib/httpretty copying httpretty/http.py -> build/lib/httpretty copying httpretty/errors.py -> build/lib/httpretty copying httpretty/utils.py -> build/lib/httpretty copying httpretty/core.py -> build/lib/httpretty copying httpretty/__init__.py -> build/lib/httpretty + sleep 1 + pushd /builddir/build/BUILD/python3-python-httpretty-0.8.14-6.20161011git70af1f8.fc28 ~/build/BUILD/python3-python-httpretty-0.8.14-6.20161011git70af1f8.fc28 ~/build/BUILD/HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + LANG=en_US.UTF-8 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mcpu=power8 -mtune=power8' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib creating build/lib/httpretty copying httpretty/compat.py -> build/lib/httpretty copying httpretty/http.py -> build/lib/httpretty copying httpretty/errors.py -> build/lib/httpretty copying httpretty/utils.py -> build/lib/httpretty copying httpretty/core.py -> build/lib/httpretty copying httpretty/__init__.py -> build/lib/httpretty + sleep 1 + popd ~/build/BUILD/HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.AvMG10 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch ++ dirname /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + rm -rf /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch + LANG=en_US.UTF-8 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mcpu=power8 -mtune=power8' + /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch running install running install_lib creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/compat.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/http.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/errors.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/utils.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/core.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/__init__.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7/site-packages/httpretty byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7/site-packages/httpretty/compat.py to compat.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7/site-packages/httpretty/http.py to http.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7/site-packages/httpretty/errors.py to errors.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7/site-packages/httpretty/utils.py to utils.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7/site-packages/httpretty/core.py to core.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7/site-packages/httpretty/__init__.py to __init__.pyc writing byte-compilation script '/tmp/tmpGa_AeK.py' /usr/bin/python2 -O /tmp/tmpGa_AeK.py removing /tmp/tmpGa_AeK.py running install_egg_info running egg_info creating httpretty.egg-info writing httpretty.egg-info/PKG-INFO writing top-level names to httpretty.egg-info/top_level.txt writing dependency_links to httpretty.egg-info/dependency_links.txt writing manifest file 'httpretty.egg-info/SOURCES.txt' reading manifest file 'httpretty.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'httpretty.egg-info/SOURCES.txt' Copying httpretty.egg-info to /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7/site-packages/httpretty-0.8.14-py2.7.egg-info running install_scripts ~/build/BUILD/python3-python-httpretty-0.8.14-6.20161011git70af1f8.fc28 ~/build/BUILD/HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + pushd /builddir/build/BUILD/python3-python-httpretty-0.8.14-6.20161011git70af1f8.fc28 + LANG=en_US.UTF-8 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mcpu=power8 -mtune=power8' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch running install running install_lib creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6 creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6/site-packages creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6/site-packages/httpretty copying build/lib/httpretty/compat.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6/site-packages/httpretty copying build/lib/httpretty/http.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6/site-packages/httpretty copying build/lib/httpretty/errors.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6/site-packages/httpretty copying build/lib/httpretty/utils.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6/site-packages/httpretty copying build/lib/httpretty/core.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6/site-packages/httpretty copying build/lib/httpretty/__init__.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6/site-packages/httpretty byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6/site-packages/httpretty/compat.py to compat.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6/site-packages/httpretty/http.py to http.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6/site-packages/httpretty/errors.py to errors.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6/site-packages/httpretty/utils.py to utils.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6/site-packages/httpretty/core.py to core.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6/site-packages/httpretty/__init__.py to __init__.cpython-36.pyc writing byte-compilation script '/tmp/tmpm5ubhypa.py' /usr/bin/python3 /tmp/tmpm5ubhypa.py removing /tmp/tmpm5ubhypa.py running install_egg_info running egg_info creating httpretty.egg-info writing httpretty.egg-info/PKG-INFO writing dependency_links to httpretty.egg-info/dependency_links.txt writing top-level names to httpretty.egg-info/top_level.txt writing manifest file 'httpretty.egg-info/SOURCES.txt' reading manifest file 'httpretty.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'httpretty.egg-info/SOURCES.txt' Copying httpretty.egg-info to /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6/site-packages/httpretty-0.8.14-py3.6.egg-info running install_scripts + popd ~/build/BUILD/HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 0.8.14-6.20161011git70af1f8.fc28 --unique-debug-suffix -0.8.14-6.20161011git70af1f8.fc28.noarch --unique-debug-src-base python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-compress + /usr/lib/rpm/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-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python2.7 using /usr/bin/python2.7 Bytecompiling .py files below /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/lib/python3.6 using /usr/bin/python3.6 + /usr/lib/rpm/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.vnrzYh + umask 022 + cd /builddir/build/BUILD + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + LANG=en_US.UTF-8 + /usr/bin/python2 setup.py test running test running egg_info writing httpretty.egg-info/PKG-INFO writing top-level names to httpretty.egg-info/top_level.txt writing dependency_links to httpretty.egg-info/dependency_links.txt reading manifest file 'httpretty.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'httpretty.egg-info/SOURCES.txt' running build_ext /usr/lib/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'with-coverage' in config file 'setup.cfg' ignored: excluded by runtime environment warn(msg, RuntimeWarning) /usr/lib/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-erase' in config file 'setup.cfg' ignored: excluded by runtime environment warn(msg, RuntimeWarning) /usr/lib/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-package' in config file 'setup.cfg' ignored: excluded by runtime environment warn(msg, RuntimeWarning) /usr/lib/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-inclusive' in config file 'setup.cfg' ignored: excluded by runtime environment warn(msg, RuntimeWarning) tests.functional.test_bypass.test_disallow_net_connect_1 When allow_net_connect = False, a request that otherwise ... ok tests.functional.test_bypass.test_disallow_net_connect_2 When allow_net_connect = False, a request that would have ... ok tests.functional.test_bypass.test_disallow_net_connect_3 When allow_net_connect = False, mocked requests still work correctly. ... ok tests.functional.test_bypass.test_httpretty_bypasses_a_unregistered_request httpretty should bypass a unregistered request by disabling it ... ok tests.functional.test_bypass.test_httpretty_bypasses_when_disabled httpretty should bypass all requests by disabling it ... ok tests.functional.test_bypass.test_using_httpretty_with_other_tcp_protocols httpretty should work even when testing code that also use other TCP-based protocols ... ok tests.functional.test_debug.test_httpretty_debugs_socket_recv HTTPretty should debug socket.recv ... ok tests.functional.test_debug.test_httpretty_debugs_socket_recv_into HTTPretty should debug socket.recv_into ... ok tests.functional.test_debug.test_httpretty_debugs_socket_recvfrom HTTPretty should debug socket.recvfrom ... ok tests.functional.test_debug.test_httpretty_debugs_socket_recvfrom_into HTTPretty should debug socket.recvfrom_into ... ok tests.functional.test_debug.test_httpretty_debugs_socket_send HTTPretty should debug socket.send ... ok tests.functional.test_debug.test_httpretty_debugs_socket_sendto HTTPretty should debug socket.sendto ... ok test_decorated (tests.functional.test_decorator.ClassDecorator) ... ok test_decorated2 (tests.functional.test_decorator.ClassDecorator) ... ok test_decorated (tests.functional.test_decorator.ClassDecoratorWithSetUp) ... ok test_decorated2 (tests.functional.test_decorator.ClassDecoratorWithSetUp) ... ok test_decorated (tests.functional.test_decorator.NonUnitTestTest) ... ok tests.functional.test_decorator.test_decor ... ok tests.functional.test_httplib2.test_callback_response HTTPretty should all a callback function to be set as the body with httplib2 ... ok tests.functional.test_httplib2.test_can_inspect_last_request HTTPretty.last_request is a mimetools.Message request from last match ... ok tests.functional.test_httplib2.test_can_inspect_last_request_with_ssl HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok tests.functional.test_httplib2.test_httpretty_ignores_querystrings_from_registered_uri Registering URIs with query string cause them to be ignored ... ok tests.functional.test_httplib2.test_httpretty_provides_easy_access_to_querystrings HTTPretty should provide an easy access to the querystring ... ok tests.functional.test_httplib2.test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2 HTTPretty should allow adding and overwritting headers by keyword args with httplib2 ... ok tests.functional.test_httplib2.test_httpretty_should_allow_adding_and_overwritting_httplib2 HTTPretty should allow adding and overwritting headers with httplib2 ... ok tests.functional.test_httplib2.test_httpretty_should_allow_forcing_headers_httplib2 HTTPretty should allow forcing headers with httplib2 ... ok tests.functional.test_httplib2.test_httpretty_should_allow_registering_regexes HTTPretty should allow registering regexes with httplib2 ... ok tests.functional.test_httplib2.test_httpretty_should_mock_a_simple_get_with_httplib2_read HTTPretty should mock a simple GET with httplib2.context.http ... ok tests.functional.test_httplib2.test_httpretty_should_mock_headers_httplib2 HTTPretty should mock basic headers with httplib2 ... ok tests.functional.test_httplib2.test_rotating_responses_with_httplib2 HTTPretty should support rotating responses with httplib2 ... ok tests.functional.test_requests.test_recording_calls HTTPretty should be able to record calls ... ok tests.functional.test_requests.test_callback_body_remains_callable_for_any_subsequent_requests HTTPretty should call a callback function more than one requests ... ok tests.functional.test_requests.test_callback_response HTTPretty should call a callback function and set its return value as the body of the response requests ... ok tests.functional.test_requests.test_callback_setting_headers_and_status_response HTTPretty should call a callback function and uses it retur tuple as status code, headers and body requests ... ok tests.functional.test_requests.test_can_inspect_last_request HTTPretty.last_request is a mimetools.Message request from last match ... ok tests.functional.test_requests.test_can_inspect_last_request_with_ssl HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok tests.functional.test_requests.test_httpretty_ignores_querystrings_from_registered_uri HTTPretty should ignore querystrings from the registered uri (requests library) ... ok tests.functional.test_requests.test_httpretty_provides_easy_access_to_querystrings HTTPretty should provide an easy access to the querystring ... ok tests.functional.test_requests.test_httpretty_provides_easy_access_to_querystrings_with_regexes HTTPretty should match regexes even if they have a different querystring ... ok tests.functional.test_requests.test_httpretty_reset_by_switching_protocols_for_same_port HTTPretty should reset protocol/port associations ... ok tests.functional.test_requests.test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2 HTTPretty should allow adding and overwritting headers by keyword args with requests ... ok tests.functional.test_requests.test_httpretty_should_allow_adding_and_overwritting_requests HTTPretty should allow adding and overwritting headers with requests ... ok tests.functional.test_requests.test_httpretty_should_allow_forcing_headers_requests HTTPretty should allow forcing headers with requests ... ok tests.functional.test_requests.test_httpretty_should_allow_multiple_methods_for_the_same_uri HTTPretty should allow registering multiple methods for the same uri ... ok tests.functional.test_requests.test_httpretty_should_allow_multiple_responses_with_multiple_methods HTTPretty should allow multiple responses when binding multiple methods to the same uri ... ok tests.functional.test_requests.test_httpretty_should_allow_registering_regexes HTTPretty should allow registering regexes with requests ... ok tests.functional.test_requests.test_httpretty_should_allow_registering_regexes_and_give_a_proper_match_to_the_callback HTTPretty should allow registering regexes with requests and giva a proper match to the callback ... ok tests.functional.test_requests.test_httpretty_should_allow_registering_regexes_with_port_and_give_a_proper_match_to_the_callback HTTPretty should allow registering regexes with requests and giva a proper match to the callback ... ok tests.functional.test_requests.test_httpretty_should_allow_registering_regexes_with_streaming_responses HTTPretty should allow registering regexes with streaming responses ... ok tests.functional.test_requests.test_httpretty_should_mock_a_simple_get_with_requests_read HTTPretty should mock a simple GET with requests.get ... ok tests.functional.test_requests.test_httpretty_should_mock_headers_requests HTTPretty should mock basic headers with requests ... ok tests.functional.test_requests.test_httpretty_should_normalize_url_patching HTTPretty should normalize all url patching ... ok tests.functional.test_requests.test_httpretty_should_respect_matcher_priority ... ok tests.functional.test_requests.test_httpretty_should_work_with_non_standard_ports HTTPretty should work with a non-standard port number ... ok tests.functional.test_requests.test_lack_of_trailing_slash HTTPretty should automatically append a slash to given urls ... ok tests.functional.test_requests.test_multiline ... ok tests.functional.test_requests.test_multipart ... ok tests.functional.test_requests.test_octet_stream ... ok tests.functional.test_requests.test_py26_callback_response HTTPretty should call a callback function *once* and set its return value as the body of the response requests ... ok tests.functional.test_requests.test_rotating_responses_with_requests HTTPretty should support rotating responses with requests ... ok tests.functional.test_requests.test_streaming_responses Mock a streaming HTTP response, like those returned by the Twitter streaming ... ok tests.functional.test_requests.test_unicode_querystrings Querystrings should accept unicode characters ... ok tests.functional.test_urllib2.test_callback_response HTTPretty should all a callback function to be set as the body with urllib2 ... ok tests.functional.test_urllib2.test_can_inspect_last_request HTTPretty.last_request is a mimetools.Message request from last match ... ok tests.functional.test_urllib2.test_can_inspect_last_request_with_ssl HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok tests.functional.test_urllib2.test_httpretty_ignores_querystrings_from_registered_uri HTTPretty should mock a simple GET with urllib2.read() ... ok tests.functional.test_urllib2.test_httpretty_provides_easy_access_to_querystrings HTTPretty should provide an easy access to the querystring ... ok tests.functional.test_urllib2.test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2 HTTPretty should allow adding and overwritting headers by keyword args with urllib2 ... ok tests.functional.test_urllib2.test_httpretty_should_allow_adding_and_overwritting_urllib2 HTTPretty should allow adding and overwritting headers with urllib2 ... ok tests.functional.test_urllib2.test_httpretty_should_allow_forcing_headers_urllib2 HTTPretty should allow forcing headers with urllib2 ... ok tests.functional.test_urllib2.test_httpretty_should_allow_registering_regexes HTTPretty should allow registering regexes with urllib2 ... ok tests.functional.test_urllib2.test_httpretty_should_mock_a_simple_get_with_urllib2_read HTTPretty should mock a simple GET with urllib2.read() ... ok tests.functional.test_urllib2.test_httpretty_should_mock_headers_urllib2 HTTPretty should mock basic headers with urllib2 ... ok tests.functional.test_urllib2.test_httpretty_should_support_a_list_of_successive_responses_urllib2 HTTPretty should support adding a list of successive responses with urllib2 ... ok tests.pyopenssl.test_mock.test_httpretty_overrides_when_pyopenssl_installed HTTPretty should remove PyOpenSSLs urllib3 mock if it is installed ... ok tests.unit.test_core.test_request_stubs_internals HTTPrettyRequest is a BaseHTTPRequestHandler that replaces real socket file descriptors with in-memory ones ... ok tests.unit.test_core.test_request_parse_querystring HTTPrettyRequest#parse_querystring should parse unicode data ... ok tests.unit.test_core.test_request_parse_body_when_it_is_application_json HTTPrettyRequest#parse_request_body recognizes the content-type `application/json` and parses it ... ok tests.unit.test_core.test_request_parse_body_when_it_is_text_json HTTPrettyRequest#parse_request_body recognizes the content-type `text/json` and parses it ... ok tests.unit.test_core.test_request_parse_body_when_it_is_urlencoded HTTPrettyRequest#parse_request_body recognizes the content-type `application/x-www-form-urlencoded` and parses it ... ok tests.unit.test_core.test_request_parse_body_when_unrecognized HTTPrettyRequest#parse_request_body returns the value as is if the Content-Type is not recognized ... ok tests.unit.test_core.test_request_string_representation HTTPrettyRequest should have a debug-friendly string representation ... ok tests.unit.test_core.test_fake_ssl_socket_proxies_its_ow_socket FakeSSLSocket is a simpel wrapper around its own socket, which was designed to be a HTTPretty fake socket ... ok tests.unit.test_core.test_fakesock_socket_ssl fakesock.socket#ssl should take a socket instance and return itself ... ok tests.unit.test_core.test_fakesock_socket_close fakesock.socket#close should close the actual socket in case it's not http and _closed is False ... ok tests.unit.test_core.test_fakesock_socket_connect_fallback fakesock.socket#connect should open a real connection if the given port is not a potential http port ... ok tests.unit.test_core.test_fakesock_socket_getpeercert fakesock.socket#getpeercert should return a hardcoded fake certificate ... ok tests.unit.test_core.test_fakesock_socket_makefile fakesock.socket#makefile should set the mode, bufsize and return its mocked file descriptor ... ok tests.unit.test_core.test_fakesock_socket_real_sendall fakesock.socket#real_sendall calls truesock#connect and bails out when not http ... ok tests.unit.test_core.test_fakesock_socket_real_sendall_continue_eagain_when_http fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... ok tests.unit.test_core.test_fakesock_socket_real_sendall_socket_error_when_http fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... ok tests.unit.test_core.test_fakesock_socket_real_sendall_when_http fakesock.socket#real_sendall should connect before sending data ... ok tests.unit.test_core.test_fakesock_socket_sendall_with_body_data_no_entry fakesock.socket#sendall should call real_sendall when not parsing headers and there is no entry ... ok tests.unit.test_core.test_fakesock_socket_sendall_with_body_data_with_chunked_entry fakesock.socket#sendall should call real_sendall when not ... ok tests.unit.test_core.test_fakesock_socket_sendall_with_body_data_with_entry fakesock.socket#sendall should call real_sendall when there is no entry ... ok tests.unit.test_core.test_fakesock_socket_sendall_with_valid_requestline fakesock.socket#sendall should create an entry if it's given a valid request line ... ok tests.unit.test_core.test_fakesock_socket_sendall_with_valid_requestline_2 fakesock.socket#sendall should create an entry if it's given a valid request line ... ok tests.unit.test_http.test_parse_request_line_connect parse_requestline should parse the CONNECT method appropriately ... ok tests.unit.test_httpretty.test_httpretty_should_raise_proper_exception_on_inconsistent_length HTTPretty should raise proper exception on inconsistent Content-Length / registered response body ... ok tests.unit.test_httpretty.test_httpretty_should_raise_on_socket_send_when_uri_registered HTTPretty should raise a RuntimeError when the fakesocket is used in ... ok tests.unit.test_httpretty.test_httpretty_should_not_raise_on_socket_send_when_uri_not_registered HTTPretty should not raise a RuntimeError when the fakesocket is used in ... ok tests.unit.test_httpretty.test_does_not_have_last_request_by_default HTTPretty.last_request is a dummy object by default ... ok tests.unit.test_httpretty.test_status_codes HTTPretty supports N status codes ... ok tests.unit.test_httpretty.test_uri_info_full_url ... ok tests.unit.test_httpretty.test_uri_info_eq_ignores_case Test that URIInfo.__eq__ method ignores case for ... ok tests.unit.test_httpretty.test_global_boolean_enabled ... ok tests.unit.test_httpretty.test_py3kobject_implements_valid__repr__based_on__str__ ... ok tests.unit.test_httpretty.test_Entry_class_normalizes_headers ... ok tests.unit.test_httpretty.test_Entry_class_counts_multibyte_characters_in_bytes ... ok tests.unit.test_httpretty.test_Entry_class_counts_dynamic ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_setblocking ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_fileno ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_getsockopt ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_bind ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_connect_ex ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_listen ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_getpeername ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_getsockname ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_gettimeout ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_shutdown ... ok tests.unit.test_httpretty.test_unix_socket ... ok tests.unit.test_httpretty.test_HTTPrettyRequest_json_body A content-type of application/json should parse a valid json body ... ok tests.unit.test_httpretty.test_HTTPrettyRequest_invalid_json_body A content-type of application/json with an invalid json body should return the content unaltered ... ok tests.unit.test_httpretty.test_HTTPrettyRequest_queryparam A content-type of x-www-form-urlencoded with a valid queryparam body should return parsed content ... ok tests.unit.test_httpretty.test_HTTPrettyRequest_arbitrarypost A non-handled content type request's post body should return the content unaltered ... ok tests.unit.test_httpretty.test_socktype_bad_python_version_regression Some versions of python accidentally internally shadowed the SockType ... ok tests.unit.test_httpretty.test_socktype_good_python_version ... ok tests.unit.test_main.test_has_request httpretty.has_request() correctly detects whether or not a request has been made ... ok tests.unit.test_main.test_last_request httpretty.last_request() should return httpretty.core.last_request ... ok ---------------------------------------------------------------------- Ran 129 tests in 5.874s OK + pushd /builddir/build/BUILD/python3-python-httpretty-0.8.14-6.20161011git70af1f8.fc28 + LANG=en_US.UTF-8 + /usr/bin/python3 setup.py test ~/build/BUILD/python3-python-httpretty-0.8.14-6.20161011git70af1f8.fc28 ~/build/BUILD/HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 running test running egg_info writing httpretty.egg-info/PKG-INFO writing dependency_links to httpretty.egg-info/dependency_links.txt writing top-level names to httpretty.egg-info/top_level.txt reading manifest file 'httpretty.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'httpretty.egg-info/SOURCES.txt' running build_ext /usr/lib/python3.6/site-packages/nose/config.py:264: RuntimeWarning: Option 'with-coverage' in config file 'setup.cfg' ignored: excluded by runtime environment warn(msg, RuntimeWarning) /usr/lib/python3.6/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-erase' in config file 'setup.cfg' ignored: excluded by runtime environment warn(msg, RuntimeWarning) /usr/lib/python3.6/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-package' in config file 'setup.cfg' ignored: excluded by runtime environment warn(msg, RuntimeWarning) /usr/lib/python3.6/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-inclusive' in config file 'setup.cfg' ignored: excluded by runtime environment warn(msg, RuntimeWarning) /builddir/build/BUILD/python3-python-httpretty-0.8.14-6.20161011git70af1f8.fc28/httpretty/http.py:138: DeprecationWarning: invalid escape sequence \s m = re.match(r'(' + methods + ')\s+(.*)\s+HTTP/(1.[0|1])', s, re.I) tests.functional.test_bypass.test_disallow_net_connect_1 When allow_net_connect = False, a request that otherwise ... ok tests.functional.test_bypass.test_disallow_net_connect_2 When allow_net_connect = False, a request that would have ... ok tests.functional.test_bypass.test_disallow_net_connect_3 When allow_net_connect = False, mocked requests still work correctly. ... ok tests.functional.test_bypass.test_httpretty_bypasses_a_unregistered_request httpretty should bypass a unregistered request by disabling it ... ok tests.functional.test_bypass.test_httpretty_bypasses_when_disabled httpretty should bypass all requests by disabling it ... ok tests.functional.test_bypass.test_using_httpretty_with_other_tcp_protocols httpretty should work even when testing code that also use other TCP-based protocols ... ok tests.functional.test_debug.test_httpretty_debugs_socket_recv HTTPretty should debug socket.recv ... ok tests.functional.test_debug.test_httpretty_debugs_socket_recv_into HTTPretty should debug socket.recv_into ... ok tests.functional.test_debug.test_httpretty_debugs_socket_recvfrom HTTPretty should debug socket.recvfrom ... ok tests.functional.test_debug.test_httpretty_debugs_socket_recvfrom_into HTTPretty should debug socket.recvfrom_into ... ok tests.functional.test_debug.test_httpretty_debugs_socket_send HTTPretty should debug socket.send ... ok tests.functional.test_debug.test_httpretty_debugs_socket_sendto HTTPretty should debug socket.sendto ... ok test_decorated (tests.functional.test_decorator.ClassDecorator) ... ok test_decorated2 (tests.functional.test_decorator.ClassDecorator) ... ok test_decorated (tests.functional.test_decorator.ClassDecoratorWithSetUp) ... ok test_decorated2 (tests.functional.test_decorator.ClassDecoratorWithSetUp) ... ok test_decorated (tests.functional.test_decorator.NonUnitTestTest) ... ok tests.functional.test_decorator.test_decor ... ok tests.functional.test_httplib2.test_callback_response HTTPretty should all a callback function to be set as the body with httplib2 ... ok tests.functional.test_httplib2.test_can_inspect_last_request HTTPretty.last_request is a mimetools.Message request from last match ... ok tests.functional.test_httplib2.test_can_inspect_last_request_with_ssl HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok tests.functional.test_httplib2.test_httpretty_ignores_querystrings_from_registered_uri Registering URIs with query string cause them to be ignored ... ok tests.functional.test_httplib2.test_httpretty_provides_easy_access_to_querystrings HTTPretty should provide an easy access to the querystring ... ok tests.functional.test_httplib2.test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2 HTTPretty should allow adding and overwritting headers by keyword args with httplib2 ... ok tests.functional.test_httplib2.test_httpretty_should_allow_adding_and_overwritting_httplib2 HTTPretty should allow adding and overwritting headers with httplib2 ... ok tests.functional.test_httplib2.test_httpretty_should_allow_forcing_headers_httplib2 HTTPretty should allow forcing headers with httplib2 ... ok tests.functional.test_httplib2.test_httpretty_should_allow_registering_regexes HTTPretty should allow registering regexes with httplib2 ... ok tests.functional.test_httplib2.test_httpretty_should_mock_a_simple_get_with_httplib2_read HTTPretty should mock a simple GET with httplib2.context.http ... ok tests.functional.test_httplib2.test_httpretty_should_mock_headers_httplib2 HTTPretty should mock basic headers with httplib2 ... ok tests.functional.test_httplib2.test_rotating_responses_with_httplib2 HTTPretty should support rotating responses with httplib2 ... ok tests.functional.test_requests.test_recording_calls HTTPretty should be able to record calls ... ok tests.functional.test_requests.test_callback_body_remains_callable_for_any_subsequent_requests HTTPretty should call a callback function more than one requests ... ok tests.functional.test_requests.test_callback_response HTTPretty should call a callback function and set its return value as the body of the response requests ... ok tests.functional.test_requests.test_callback_setting_headers_and_status_response HTTPretty should call a callback function and uses it retur tuple as status code, headers and body requests ... ok tests.functional.test_requests.test_can_inspect_last_request HTTPretty.last_request is a mimetools.Message request from last match ... ok tests.functional.test_requests.test_can_inspect_last_request_with_ssl HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok tests.functional.test_requests.test_httpretty_ignores_querystrings_from_registered_uri HTTPretty should ignore querystrings from the registered uri (requests library) ... ok tests.functional.test_requests.test_httpretty_provides_easy_access_to_querystrings HTTPretty should provide an easy access to the querystring ... ok tests.functional.test_requests.test_httpretty_provides_easy_access_to_querystrings_with_regexes HTTPretty should match regexes even if they have a different querystring ... ok tests.functional.test_requests.test_httpretty_reset_by_switching_protocols_for_same_port HTTPretty should reset protocol/port associations ... ok tests.functional.test_requests.test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2 HTTPretty should allow adding and overwritting headers by keyword args with requests ... ok tests.functional.test_requests.test_httpretty_should_allow_adding_and_overwritting_requests HTTPretty should allow adding and overwritting headers with requests ... ok tests.functional.test_requests.test_httpretty_should_allow_forcing_headers_requests HTTPretty should allow forcing headers with requests ... ok tests.functional.test_requests.test_httpretty_should_allow_multiple_methods_for_the_same_uri HTTPretty should allow registering multiple methods for the same uri ... ok tests.functional.test_requests.test_httpretty_should_allow_multiple_responses_with_multiple_methods HTTPretty should allow multiple responses when binding multiple methods to the same uri ... ok tests.functional.test_requests.test_httpretty_should_allow_registering_regexes HTTPretty should allow registering regexes with requests ... ok tests.functional.test_requests.test_httpretty_should_allow_registering_regexes_and_give_a_proper_match_to_the_callback HTTPretty should allow registering regexes with requests and giva a proper match to the callback ... ok tests.functional.test_requests.test_httpretty_should_allow_registering_regexes_with_port_and_give_a_proper_match_to_the_callback HTTPretty should allow registering regexes with requests and giva a proper match to the callback ... ok tests.functional.test_requests.test_httpretty_should_allow_registering_regexes_with_streaming_responses HTTPretty should allow registering regexes with streaming responses ... ok tests.functional.test_requests.test_httpretty_should_mock_a_simple_get_with_requests_read HTTPretty should mock a simple GET with requests.get ... ok tests.functional.test_requests.test_httpretty_should_mock_headers_requests HTTPretty should mock basic headers with requests ... ok tests.functional.test_requests.test_httpretty_should_normalize_url_patching HTTPretty should normalize all url patching ... ok tests.functional.test_requests.test_httpretty_should_respect_matcher_priority ... ok tests.functional.test_requests.test_httpretty_should_work_with_non_standard_ports HTTPretty should work with a non-standard port number ... ok tests.functional.test_requests.test_lack_of_trailing_slash HTTPretty should automatically append a slash to given urls ... ok tests.functional.test_requests.test_multiline ... ok tests.functional.test_requests.test_multipart ... ok tests.functional.test_requests.test_octet_stream ... ok tests.functional.test_requests.test_py26_callback_response HTTPretty should call a callback function *once* and set its return value as the body of the response requests ... ok tests.functional.test_requests.test_rotating_responses_with_requests HTTPretty should support rotating responses with requests ... ok tests.functional.test_requests.test_streaming_responses Mock a streaming HTTP response, like those returned by the Twitter streaming ... ok tests.functional.test_requests.test_unicode_querystrings Querystrings should accept unicode characters ... ok tests.functional.test_urllib2.test_callback_response HTTPretty should all a callback function to be set as the body with urllib2 ... ok tests.functional.test_urllib2.test_can_inspect_last_request HTTPretty.last_request is a mimetools.Message request from last match ... ok tests.functional.test_urllib2.test_can_inspect_last_request_with_ssl HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok tests.functional.test_urllib2.test_httpretty_ignores_querystrings_from_registered_uri HTTPretty should mock a simple GET with urllib2.read() ... ok tests.functional.test_urllib2.test_httpretty_provides_easy_access_to_querystrings HTTPretty should provide an easy access to the querystring ... ok tests.functional.test_urllib2.test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2 HTTPretty should allow adding and overwritting headers by keyword args with urllib2 ... ok tests.functional.test_urllib2.test_httpretty_should_allow_adding_and_overwritting_urllib2 HTTPretty should allow adding and overwritting headers with urllib2 ... ok tests.functional.test_urllib2.test_httpretty_should_allow_forcing_headers_urllib2 HTTPretty should allow forcing headers with urllib2 ... ok tests.functional.test_urllib2.test_httpretty_should_allow_registering_regexes HTTPretty should allow registering regexes with urllib2 ... ok tests.functional.test_urllib2.test_httpretty_should_mock_a_simple_get_with_urllib2_read HTTPretty should mock a simple GET with urllib2.read() ... ok tests.functional.test_urllib2.test_httpretty_should_mock_headers_urllib2 HTTPretty should mock basic headers with urllib2 ... ok tests.functional.test_urllib2.test_httpretty_should_support_a_list_of_successive_responses_urllib2 HTTPretty should support adding a list of successive responses with urllib2 ... ok tests.pyopenssl.test_mock.test_httpretty_overrides_when_pyopenssl_installed HTTPretty should remove PyOpenSSLs urllib3 mock if it is installed ... ok tests.unit.test_core.test_request_stubs_internals HTTPrettyRequest is a BaseHTTPRequestHandler that replaces real socket file descriptors with in-memory ones ... ok tests.unit.test_core.test_request_parse_querystring HTTPrettyRequest#parse_querystring should parse unicode data ... ok tests.unit.test_core.test_request_parse_body_when_it_is_application_json HTTPrettyRequest#parse_request_body recognizes the content-type `application/json` and parses it ... ok tests.unit.test_core.test_request_parse_body_when_it_is_text_json HTTPrettyRequest#parse_request_body recognizes the content-type `text/json` and parses it ... ok tests.unit.test_core.test_request_parse_body_when_it_is_urlencoded HTTPrettyRequest#parse_request_body recognizes the content-type `application/x-www-form-urlencoded` and parses it ... ok tests.unit.test_core.test_request_parse_body_when_unrecognized HTTPrettyRequest#parse_request_body returns the value as is if the Content-Type is not recognized ... ok tests.unit.test_core.test_request_string_representation HTTPrettyRequest should have a debug-friendly string representation ... ok tests.unit.test_core.test_fake_ssl_socket_proxies_its_ow_socket FakeSSLSocket is a simpel wrapper around its own socket, which was designed to be a HTTPretty fake socket ... ok tests.unit.test_core.test_fakesock_socket_ssl fakesock.socket#ssl should take a socket instance and return itself ... ok tests.unit.test_core.test_fakesock_socket_close fakesock.socket#close should close the actual socket in case it's not http and _closed is False ... ok tests.unit.test_core.test_fakesock_socket_connect_fallback fakesock.socket#connect should open a real connection if the given port is not a potential http port ... ok tests.unit.test_core.test_fakesock_socket_getpeercert fakesock.socket#getpeercert should return a hardcoded fake certificate ... ok tests.unit.test_core.test_fakesock_socket_makefile fakesock.socket#makefile should set the mode, bufsize and return its mocked file descriptor ... ok tests.unit.test_core.test_fakesock_socket_real_sendall fakesock.socket#real_sendall calls truesock#connect and bails out when not http ... ok tests.unit.test_core.test_fakesock_socket_real_sendall_continue_eagain_when_http fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... ok tests.unit.test_core.test_fakesock_socket_real_sendall_socket_error_when_http fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... ok tests.unit.test_core.test_fakesock_socket_real_sendall_when_http fakesock.socket#real_sendall should connect before sending data ... ok tests.unit.test_core.test_fakesock_socket_sendall_with_body_data_no_entry fakesock.socket#sendall should call real_sendall when not parsing headers and there is no entry ... ok tests.unit.test_core.test_fakesock_socket_sendall_with_body_data_with_chunked_entry fakesock.socket#sendall should call real_sendall when not ... ok tests.unit.test_core.test_fakesock_socket_sendall_with_body_data_with_entry fakesock.socket#sendall should call real_sendall when there is no entry ... ok tests.unit.test_core.test_fakesock_socket_sendall_with_valid_requestline fakesock.socket#sendall should create an entry if it's given a valid request line ... ok tests.unit.test_core.test_fakesock_socket_sendall_with_valid_requestline_2 fakesock.socket#sendall should create an entry if it's given a valid request line ... ok tests.unit.test_http.test_parse_request_line_connect parse_requestline should parse the CONNECT method appropriately ... ok tests.unit.test_httpretty.test_httpretty_should_raise_proper_exception_on_inconsistent_length HTTPretty should raise proper exception on inconsistent Content-Length / registered response body ... ok tests.unit.test_httpretty.test_httpretty_should_raise_on_socket_send_when_uri_registered HTTPretty should raise a RuntimeError when the fakesocket is used in ... ok tests.unit.test_httpretty.test_httpretty_should_not_raise_on_socket_send_when_uri_not_registered HTTPretty should not raise a RuntimeError when the fakesocket is used in ... ok tests.unit.test_httpretty.test_does_not_have_last_request_by_default HTTPretty.last_request is a dummy object by default ... ok tests.unit.test_httpretty.test_status_codes HTTPretty supports N status codes ... ok tests.unit.test_httpretty.test_uri_info_full_url ... ok tests.unit.test_httpretty.test_uri_info_eq_ignores_case Test that URIInfo.__eq__ method ignores case for ... ok tests.unit.test_httpretty.test_global_boolean_enabled ... ok tests.unit.test_httpretty.test_py3kobject_implements_valid__repr__based_on__str__ ... ok tests.unit.test_httpretty.test_Entry_class_normalizes_headers ... ok tests.unit.test_httpretty.test_Entry_class_counts_multibyte_characters_in_bytes ... ok tests.unit.test_httpretty.test_Entry_class_counts_dynamic ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_setblocking ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_fileno ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_getsockopt ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_bind ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_connect_ex ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_listen ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_getpeername ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_getsockname ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_gettimeout ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_shutdown ... ok tests.unit.test_httpretty.test_unix_socket ... ok tests.unit.test_httpretty.test_HTTPrettyRequest_json_body A content-type of application/json should parse a valid json body ... ok tests.unit.test_httpretty.test_HTTPrettyRequest_invalid_json_body A content-type of application/json with an invalid json body should return the content unaltered ... ok tests.unit.test_httpretty.test_HTTPrettyRequest_queryparam A content-type of x-www-form-urlencoded with a valid queryparam body should return parsed content ... ok tests.unit.test_httpretty.test_HTTPrettyRequest_arbitrarypost A non-handled content type request's post body should return the content unaltered ... ok tests.unit.test_httpretty.test_socktype_bad_python_version_regression Some versions of python accidentally internally shadowed the SockType ... ok tests.unit.test_httpretty.test_socktype_good_python_version ... ok tests.unit.test_main.test_has_request httpretty.has_request() correctly detects whether or not a request has been made ... ok tests.unit.test_main.test_last_request httpretty.last_request() should return httpretty.core.last_request ... ok ---------------------------------------------------------------------- Ran 129 tests in 6.155s OK ~/build/BUILD/HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + popd + exit 0 Processing files: python2-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.xCWrSG + umask 022 + cd /builddir/build/BUILD + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + DOCDIR=/builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/share/doc/python2-httpretty + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/share/doc/python2-httpretty + cp -pr README.md /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/share/doc/python2-httpretty + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.4EOHM5 + umask 022 + cd /builddir/build/BUILD + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + LICENSEDIR=/builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/share/licenses/python2-httpretty + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/share/licenses/python2-httpretty + cp -pr COPYING /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/share/licenses/python2-httpretty + exit 0 Provides: python-httpretty = 0.8.14-6.20161011git70af1f8.fc28 python2-httpretty = 0.8.14-6.20161011git70af1f8.fc28 python2.7dist(httpretty) = 0.8.14 python2dist(httpretty) = 0.8.14 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-httpretty < 0.8.14-6.20161011git70af1f8.fc28 Processing files: python3-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.JgPXhx + umask 022 + cd /builddir/build/BUILD + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + DOCDIR=/builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/share/doc/python3-httpretty + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/share/doc/python3-httpretty + cp -pr README.md /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/share/doc/python3-httpretty + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.nquyNY + umask 022 + cd /builddir/build/BUILD + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + LICENSEDIR=/builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/share/licenses/python3-httpretty + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/share/licenses/python3-httpretty + cp -pr COPYING /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch/usr/share/licenses/python3-httpretty + exit 0 Provides: python3-httpretty = 0.8.14-6.20161011git70af1f8.fc28 python3.6dist(httpretty) = 0.8.14 python3dist(httpretty) = 0.8.14 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) = 3.6 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch Wrote: /builddir/build/RPMS/python2-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch.rpm Wrote: /builddir/build/RPMS/python3-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.0PSHYs + umask 022 + cd /builddir/build/BUILD + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-httpretty-0.8.14-6.20161011git70af1f8.fc28.noarch + exit 0 Child return code was: 0