Mock Version: 2.10 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-httpretty.spec'], chrootPath='/var/lib/mock/epel-7-x86_64-1622930791.238795/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': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.y8svmhpe:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=FalseprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.y8svmhpe:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '1b486adf12f24fceb3fcdd41463d8689', '-D', '/var/lib/mock/epel-7-x86_64-1622930791.238795/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.y8svmhpe:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-httpretty.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': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-httpretty-0.9.7-2.el7.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-httpretty.spec'], chrootPath='/var/lib/mock/epel-7-x86_64-1622930791.238795/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': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.y8svmhpe:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=FalseprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.y8svmhpe:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'f6baccb7cfd24428bdaba6fc035d7faf', '-D', '/var/lib/mock/epel-7-x86_64-1622930791.238795/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.y8svmhpe:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-httpretty.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': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.bVZpyd + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf httpretty-0.9.7 + /usr/bin/gzip -dc /builddir/build/SOURCES/httpretty-0.9.7.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd httpretty-0.9.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/python-httpretty-fakesock_getpeercert_noconnect.patch + /usr/bin/patch -p1 -s + sed -i 's/^with-randomly = 1$//' setup.cfg + sed -i 's/^rednose = 1$//' setup.cfg + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.dSNjpL + umask 022 + cd /builddir/build/BUILD + cd httpretty-0.9.7 + LANG=C.UTF-8 + 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/httpretty copying httpretty/errors.py -> build/lib/httpretty copying httpretty/http.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 copying httpretty/compat.py -> build/lib/httpretty copying httpretty/version.py -> build/lib/httpretty + 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' + LDFLAGS='-Wl,-z,relro ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py + sleep 1 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.iXlD6o + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64 ++ dirname /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64 + cd httpretty-0.9.7 + LANG=C.UTF-8 + 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-httpretty-0.9.7-2.el7.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr creating /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib creating /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/version.py -> /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/compat.py -> /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/__init__.py -> /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/core.py -> /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/utils.py -> /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/http.py -> /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/errors.py -> /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages/httpretty byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages/httpretty/version.py to version.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages/httpretty/compat.py to compat.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages/httpretty/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages/httpretty/core.py to core.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages/httpretty/utils.py to utils.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages/httpretty/http.py to http.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages/httpretty/errors.py to errors.pyc writing byte-compilation script '/tmp/tmpD2mqu_.py' /usr/bin/python2 -O /tmp/tmpD2mqu_.py removing /tmp/tmpD2mqu_.py running install_egg_info running egg_info writing requirements to httpretty.egg-info/requires.txt 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' Copying httpretty.egg-info to /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7/site-packages/httpretty-0.9.7-py2.7.egg-info running install_scripts + 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' + LDFLAGS='-Wl,-z,relro ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6 creating /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages creating /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages/httpretty copying build/lib/httpretty/version.py -> /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages/httpretty copying build/lib/httpretty/compat.py -> /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages/httpretty copying build/lib/httpretty/__init__.py -> /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages/httpretty copying build/lib/httpretty/core.py -> /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages/httpretty copying build/lib/httpretty/utils.py -> /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages/httpretty copying build/lib/httpretty/http.py -> /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages/httpretty copying build/lib/httpretty/errors.py -> /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages/httpretty byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages/httpretty/version.py to version.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages/httpretty/compat.py to compat.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages/httpretty/__init__.py to __init__.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages/httpretty/core.py to core.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages/httpretty/utils.py to utils.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages/httpretty/http.py to http.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages/httpretty/errors.py to errors.cpython-36.pyc writing byte-compilation script '/tmp/tmpgblzg7jq.py' /usr/bin/python3 /tmp/tmpgblzg7jq.py removing /tmp/tmpgblzg7jq.py running install_egg_info running egg_info writing httpretty.egg-info/PKG-INFO writing dependency_links to httpretty.egg-info/dependency_links.txt writing requirements to httpretty.egg-info/requires.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' Copying httpretty.egg-info to /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6/site-packages/httpretty-0.9.7-py3.6.egg-info running install_scripts + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/httpretty-0.9.7 /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-httpretty-0.9.7-2.el7.x86_64/usr/lib/python3.6 using /usr/bin/python3.6 Bytecompiling .py files below /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/lib/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.AThMU4 + umask 022 + cd /builddir/build/BUILD + cd httpretty-0.9.7 + LANG=C.UTF-8 + /usr/bin/python2 -m nose -v nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$'] nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module When allow_net_connect = False, a request that otherwise ... WARNING:tornado.access:404 GET / (::1) 0.84ms ok When allow_net_connect = False, a request that would have ... ok When allow_net_connect = False, mocked requests still work correctly. ... ok httpretty should bypass a unregistered request by disabling it ... WARNING:tornado.access:404 GET / (::1) 0.85ms ok httpretty should bypass all requests by disabling it ... WARNING:tornado.access:404 GET / (::1) 0.87ms ok httpretty should work even when testing code that also use other TCP-based protocols ... ok HTTPretty should debug socket.recv ... ok HTTPretty should debug socket.recv_into ... ok HTTPretty should debug socket.recvfrom ... ok HTTPretty should debug socket.recvfrom_into ... ok HTTPretty should debug socket.send ... ok 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 HTTPretty should all a callback function to be set as the body with httplib2 ... ok HTTPretty.last_request is a mimetools.Message request from last match ... ok HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok Registering URIs with query string cause them to be ignored ... ok HTTPretty should provide an easy access to the querystring ... ok HTTPretty should allow adding and overwritting headers by keyword args with httplib2 ... ok HTTPretty should allow adding and overwritting headers with httplib2 ... ok HTTPretty should allow forcing headers with httplib2 ... ok HTTPretty should allow registering regexes with httplib2 ... ok HTTPretty should mock a simple GET with httplib2.context.http ... ok HTTPretty should mock basic headers with httplib2 ... ok HTTPretty should support rotating responses with httplib2 ... ok HTTPretty should be able to record calls ... ok HTTPretty should call a callback function more than one requests ... ok HTTPretty should call a callback function and set its return value as the body of the response requests ... ok HTTPretty should call a callback function, use it's return tuple as status code, headers and body requests and respect the content-length header when responding to HEAD ... ok HTTPretty should call a callback function and uses it retur tuple as status code, headers and body requests ... ok HTTPretty.last_request is a mimetools.Message request from last match ... ok HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok HTTPretty should ignore querystrings from the registered uri (requests library) ... ok HTTPretty should provide an easy access to the querystring ... ok HTTPretty should match regexes even if they have a different querystring ... ok HTTPretty should reset protocol/port associations ... ok HTTPretty should allow adding and overwritting headers by keyword args with requests ... ok HTTPretty should allow adding and overwritting headers with requests ... ok HTTPretty should allow forcing headers with requests ... ok HTTPretty should allow registering multiple methods for the same uri ... ok HTTPretty should allow multiple responses when binding multiple methods to the same uri ... ok HTTPretty should allow registering regexes with requests ... ok HTTPretty should allow registering regexes with requests and giva a proper match to the callback ... ok HTTPretty should allow registering regexes with requests and giva a proper match to the callback ... ok HTTPretty should allow registering regexes with streaming responses ... WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: api.yipit.com ok HTTPretty should mock a simple GET with requests.get ... ok HTTPretty should mock basic headers with requests ... ok HTTPretty should normalize all url patching ... ok tests.functional.test_requests.test_httpretty_should_respect_matcher_priority ... ok HTTPretty should work with a non-standard port number ... ok 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 HTTPretty should call a callback function *once* and set its return value as the body of the response requests ... ok HTTPretty should support rotating responses with requests ... ok Mock a streaming HTTP response, like those returned by the Twitter streaming ... ok Querystrings should accept unicode characters ... ok HTTPretty should all a callback function to be set as the body with urllib2 ... ok HTTPretty.last_request is a mimetools.Message request from last match ... ok HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok HTTPretty should mock a simple GET with urllib2.read() ... ok HTTPretty should provide an easy access to the querystring ... ok HTTPretty should allow adding and overwritting headers by keyword args with urllib2 ... ok HTTPretty should allow adding and overwritting headers with urllib2 ... ok HTTPretty should allow forcing headers with urllib2 ... ok HTTPretty should allow registering regexes with urllib2 ... ok HTTPretty should mock a simple GET with urllib2.read() ... ok HTTPretty should mock basic headers with urllib2 ... ok HTTPretty should support adding a list of successive responses with urllib2 ... ok HTTPretty should remove PyOpenSSLs urllib3 mock if it is installed ... ok HTTPrettyRequest is a BaseHTTPRequestHandler that replaces real socket file descriptors with in-memory ones ... ok HTTPrettyRequest#parse_querystring should parse unicode data ... ok HTTPrettyRequest#parse_request_body recognizes the content-type `application/json` and parses it ... ok HTTPrettyRequest#parse_request_body recognizes the content-type `text/json` and parses it ... ok HTTPrettyRequest#parse_request_body recognizes the content-type `application/x-www-form-urlencoded` and parses it ... ok HTTPrettyRequest#parse_request_body returns the value as is if the Content-Type is not recognized ... ok HTTPrettyRequest should have a debug-friendly string representation ... ok FakeSSLSocket is a simpel wrapper around its own socket, which was designed to be a HTTPretty fake socket ... ok fakesock.socket#getpeercert should return a hardcoded fake certificate ... ok fakesock.socket#ssl should take a socket instance and return itself ... ok fakesock.socket#connect should open a real connection if the given port is not a potential http port ... ok fakesock.socket#close should close the actual socket in case it's not http and _closed is False ... ok fakesock.socket#makefile should set the mode, bufsize and return its mocked file descriptor ... ok fakesock.socket#real_sendall calls truesock#connect and bails out when not http ... ok fakesock.socket#real_sendall sends data and buffers the response in the file descriptor ... ok fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... ok fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... ok fakesock.socket#real_sendall should connect before sending data ... ok fakesock.socket#sendall should create an entry if it's given a valid request line ... ok fakesock.socket#sendall should create an entry if it's given a valid request line ... ok fakesock.socket#sendall should call real_sendall when not parsing headers and there is no entry ... ok fakesock.socket#sendall should call real_sendall when there is no entry ... ok fakesock.socket#sendall should call real_sendall when not ... ok URIMatcher response querystring ... ok URIMatcher equality check should check querystring ... ok parse_requestline should parse the CONNECT method appropriately ... ok HTTPretty should raise proper exception on inconsistent Content-Length / registered response body ... ok HTTPretty should raise a RuntimeError when the fakesocket is used in an invalid usage. ... ok HTTPretty should not raise a RuntimeError when the fakesocket is used in an invalid usage. ... ok HTTPretty.last_request is a dummy object by default ... ok HTTPretty supports N status codes ... ok tests.unit.test_httpretty.test_uri_info_full_url ... ok 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 A content-type of application/json should parse a valid json body ... ok A content-type of application/json with an invalid json body should return the content unaltered ... ok A content-type of x-www-form-urlencoded with a valid queryparam body should return parsed content ... ok A non-handled content type request's post body should return the content unaltered ... ok Some versions of python accidentally internally shadowed the SockType ... ok tests.unit.test_httpretty.test_socktype_good_python_version ... ok HTTPretty should allow registering regexes with requests ... ok HTTPretty should allow registering regexes with requests (ssl version) ... ok httpretty.last_request() should return httpretty.core.last_request ... ok httpretty.latest_requests() should return httpretty.core.latest_requests ... ok httpretty.has_request() correctly detects whether or not a request has been made ... ok ---------------------------------------------------------------------- Ran 136 tests in 5.023s OK (32545, 200000) (2129, 200000) (15341, 200000) (1935, 200000) (1617, 200000) (1926, 200000) (1495, 200000) (1277, 200000) (1838, 200000) (2005, 200000) (43778, 200000) (5186, 200000) (5444, 200000) (2644, 200000) (5259, 200000) (2882, 200000) (3266, 200000) (2645, 200000) (2518, 200000) (2502, 200000) (2540, 200000) (2303, 200000) (2532, 200000) (2567, 200000) (7473, 200000) (12849, 500000) (16156, 200000) (1581, 200000) (8188, 200000) (1564, 200000) (1573, 200000) (1593, 200000) (1552, 200000) (1339, 200000) (1897, 200000) (1532, 200000) (23074, 200000) + /usr/bin/python3 -m nose -v nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$'] nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module When allow_net_connect = False, a request that otherwise ... WARNING:tornado.access:404 GET / (::1) 1.13ms ok When allow_net_connect = False, a request that would have ... ok When allow_net_connect = False, mocked requests still work correctly. ... ok httpretty should bypass a unregistered request by disabling it ... WARNING:tornado.access:404 GET / (::1) 1.13ms ok httpretty should bypass all requests by disabling it ... WARNING:tornado.access:404 GET / (::1) 1.16ms ok httpretty should work even when testing code that also use other TCP-based protocols ... ok HTTPretty should debug socket.recv ... ok HTTPretty should debug socket.recv_into ... ok HTTPretty should debug socket.recvfrom ... ok HTTPretty should debug socket.recvfrom_into ... ok HTTPretty should debug socket.send ... ok 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 HTTPretty should all a callback function to be set as the body with httplib2 ... ok HTTPretty.last_request is a mimetools.Message request from last match ... ok HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok Registering URIs with query string cause them to be ignored ... ok HTTPretty should provide an easy access to the querystring ... ok HTTPretty should allow adding and overwritting headers by keyword args with httplib2 ... ok HTTPretty should allow adding and overwritting headers with httplib2 ... ok HTTPretty should allow forcing headers with httplib2 ... ok HTTPretty should allow registering regexes with httplib2 ... ok HTTPretty should mock a simple GET with httplib2.context.http ... ok HTTPretty should mock basic headers with httplib2 ... ok HTTPretty should support rotating responses with httplib2 ... ok HTTPretty should be able to record calls ... ok HTTPretty should call a callback function more than one requests ... ok HTTPretty should call a callback function and set its return value as the body of the response requests ... ok HTTPretty should call a callback function, use it's return tuple as status code, headers and body requests and respect the content-length header when responding to HEAD ... ok HTTPretty should call a callback function and uses it retur tuple as status code, headers and body requests ... ok HTTPretty.last_request is a mimetools.Message request from last match ... ok HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok HTTPretty should ignore querystrings from the registered uri (requests library) ... ok HTTPretty should provide an easy access to the querystring ... ok HTTPretty should match regexes even if they have a different querystring ... ok HTTPretty should reset protocol/port associations ... ok HTTPretty should allow adding and overwritting headers by keyword args with requests ... ok HTTPretty should allow adding and overwritting headers with requests ... ok HTTPretty should allow forcing headers with requests ... ok HTTPretty should allow registering multiple methods for the same uri ... ok HTTPretty should allow multiple responses when binding multiple methods to the same uri ... ok HTTPretty should allow registering regexes with requests ... ok HTTPretty should allow registering regexes with requests and giva a proper match to the callback ... ok HTTPretty should allow registering regexes with requests and giva a proper match to the callback ... ok HTTPretty should allow registering regexes with streaming responses ... ok HTTPretty should mock a simple GET with requests.get ... ok HTTPretty should mock basic headers with requests ... ok HTTPretty should normalize all url patching ... ok tests.functional.test_requests.test_httpretty_should_respect_matcher_priority ... ok HTTPretty should work with a non-standard port number ... ok 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 HTTPretty should call a callback function *once* and set its return value as the body of the response requests ... ok HTTPretty should support rotating responses with requests ... ok Mock a streaming HTTP response, like those returned by the Twitter streaming ... ok Querystrings should accept unicode characters ... ok HTTPretty should all a callback function to be set as the body with urllib2 ... ok HTTPretty.last_request is a mimetools.Message request from last match ... ok HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok HTTPretty should mock a simple GET with urllib2.read() ... ok HTTPretty should provide an easy access to the querystring ... ok HTTPretty should allow adding and overwritting headers by keyword args with urllib2 ... ok HTTPretty should allow adding and overwritting headers with urllib2 ... ok HTTPretty should allow forcing headers with urllib2 ... ok HTTPretty should allow registering regexes with urllib2 ... ok HTTPretty should mock a simple GET with urllib2.read() ... ok HTTPretty should mock basic headers with urllib2 ... ok HTTPretty should support adding a list of successive responses with urllib2 ... ok HTTPretty should remove PyOpenSSLs urllib3 mock if it is installed ... ok HTTPrettyRequest is a BaseHTTPRequestHandler that replaces real socket file descriptors with in-memory ones ... ok HTTPrettyRequest#parse_querystring should parse unicode data ... ok HTTPrettyRequest#parse_request_body recognizes the content-type `application/json` and parses it ... ok HTTPrettyRequest#parse_request_body recognizes the content-type `text/json` and parses it ... ok HTTPrettyRequest#parse_request_body recognizes the content-type `application/x-www-form-urlencoded` and parses it ... ok HTTPrettyRequest#parse_request_body returns the value as is if the Content-Type is not recognized ... ok HTTPrettyRequest should have a debug-friendly string representation ... ok FakeSSLSocket is a simpel wrapper around its own socket, which was designed to be a HTTPretty fake socket ... ok fakesock.socket#ssl should take a socket instance and return itself ... ok URIMatcher response querystring ... ok URIMatcher equality check should check querystring ... ok fakesock.socket#close should close the actual socket in case it's not http and _closed is False ... ok fakesock.socket#connect should open a real connection if the given port is not a potential http port ... ok fakesock.socket#getpeercert should return a hardcoded fake certificate ... ok fakesock.socket#makefile should set the mode, bufsize and return its mocked file descriptor ... ok fakesock.socket#real_sendall calls truesock#connect and bails out when not http ... ok fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... ok fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... ok fakesock.socket#real_sendall sends data and buffers the response in the file descriptor ... ok fakesock.socket#real_sendall should connect before sending data ... ok fakesock.socket#sendall should call real_sendall when not parsing headers and there is no entry ... ok fakesock.socket#sendall should call real_sendall when not ... ok fakesock.socket#sendall should call real_sendall when there is no entry ... ok fakesock.socket#sendall should create an entry if it's given a valid request line ... ok fakesock.socket#sendall should create an entry if it's given a valid request line ... ok parse_requestline should parse the CONNECT method appropriately ... ok HTTPretty should raise proper exception on inconsistent Content-Length / registered response body ... ok HTTPretty should raise a RuntimeError when the fakesocket is used in an invalid usage. ... ok HTTPretty should not raise a RuntimeError when the fakesocket is used in an invalid usage. ... ok HTTPretty.last_request is a dummy object by default ... ok HTTPretty supports N status codes ... ok tests.unit.test_httpretty.test_uri_info_full_url ... ok 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 A content-type of application/json should parse a valid json body ... ok A content-type of application/json with an invalid json body should return the content unaltered ... ok A content-type of x-www-form-urlencoded with a valid queryparam body should return parsed content ... ok A non-handled content type request's post body should return the content unaltered ... ok Some versions of python accidentally internally shadowed the SockType ... ok tests.unit.test_httpretty.test_socktype_good_python_version ... ok HTTPretty should allow registering regexes with requests ... ok HTTPretty should allow registering regexes with requests (ssl version) ... ok httpretty.has_request() correctly detects whether or not a request has been made ... ok httpretty.last_request() should return httpretty.core.last_request ... ok httpretty.latest_requests() should return httpretty.core.latest_requests ... ok ---------------------------------------------------------------------- Ran 136 tests in 5.090s OK 15862 200000 3014 200000 7979 200000 1795 200000 1529 200000 1512 200000 1432 200000 1351 200000 1725 200000 1531 200000 22166 200000 6846 200000 7213 200000 3293 200000 6886 200000 3431 200000 4057 200000 3110 200000 3079 200000 2946 200000 3543 200000 2778 200000 2932 200000 2989 200000 9109 200000 17704 500000 15627 200000 1954 200000 7865 200000 1779 200000 1510 200000 1539 200000 1455 200000 1354 200000 1604 200000 1439 200000 22038 200000 + exit 0 Processing files: python2-httpretty-0.9.7-2.el7.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.jEOF5a + umask 022 + cd /builddir/build/BUILD + cd httpretty-0.9.7 + DOCDIR=/builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/share/doc/python2-httpretty-0.9.7 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/share/doc/python2-httpretty-0.9.7 + cp -pr README.rst /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/share/doc/python2-httpretty-0.9.7 + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.LCFthh + umask 022 + cd /builddir/build/BUILD + cd httpretty-0.9.7 + LICENSEDIR=/builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/share/licenses/python2-httpretty-0.9.7 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/share/licenses/python2-httpretty-0.9.7 + cp -pr COPYING /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/share/licenses/python2-httpretty-0.9.7 + exit 0 Provides: python-httpretty = 0.9.7-2.el7 python2-httpretty = 0.9.7-2.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-httpretty < 0.9.7-2.el7 Processing files: python3-httpretty-0.9.7-2.el7.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.H0e8Xn + umask 022 + cd /builddir/build/BUILD + cd httpretty-0.9.7 + DOCDIR=/builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/share/doc/python3-httpretty-0.9.7 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/share/doc/python3-httpretty-0.9.7 + cp -pr README.rst /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/share/doc/python3-httpretty-0.9.7 + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.666IFu + umask 022 + cd /builddir/build/BUILD + cd httpretty-0.9.7 + LICENSEDIR=/builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/share/licenses/python3-httpretty-0.9.7 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/share/licenses/python3-httpretty-0.9.7 + cp -pr COPYING /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64/usr/share/licenses/python3-httpretty-0.9.7 + exit 0 Provides: python3-httpretty = 0.9.7-2.el7 python3.6dist(httpretty) = 0.9.7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-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.9.7-2.el7.x86_64 Wrote: /builddir/build/RPMS/python2-httpretty-0.9.7-2.el7.noarch.rpm Wrote: /builddir/build/RPMS/python3-httpretty-0.9.7-2.el7.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.EfdajN + umask 022 + cd /builddir/build/BUILD + cd httpretty-0.9.7 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-httpretty-0.9.7-2.el7.x86_64 + exit 0 Child return code was: 0