[Python-modules-team] Bug#973211: spyne: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.9 3.8" returned exit code 13
Lucas Nussbaum
lucas at debian.org
Tue Oct 27 17:21:21 GMT 2020
Source: spyne
Version: 2.13.15-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201027 ftbfs-bullseye
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_clean
> rm -f debian/debhelper-build-stamp
> rm -rf debian/.debhelper/
> rm -f -- debian/python3-spyne.substvars debian/files
> rm -fr -- debian/python3-spyne/ debian/tmp/
> find . \( \( \
> \( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \
> \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
> -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
> -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
> -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
> \) -exec rm -f {} + \) -o \
> \( -type d -a -name autom4te.cache -prune -exec rm -rf {} + \) \)
> [ ! -d spyne.egg-info.orig ] || { rm -rf spyne.egg-info; mv spyne.egg-info.orig spyne.egg-info; }
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building spyne using existing ./spyne_2.13.15.orig.tar.gz
> dpkg-source: info: building spyne in spyne_2.13.15-1.debian.tar.xz
> dpkg-source: info: building spyne in spyne_2.13.15-1.dsc
> debian/rules binary
> dh binary -v --with python3 --buildsystem=pybuild
> dh_update_autotools_config -O-v -O--buildsystem=pybuild
> dh_autoreconf -O-v -O--buildsystem=pybuild
> dh_auto_configure -O-v -O--buildsystem=pybuild
> install -d /<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home
> pybuild --configure --test-pytest -i python{version} -p "3.9 3.8"
> I: pybuild base:217: python3.9 setup.py config
> running config
> I: pybuild base:217: python3.8 setup.py config
> running config
> dh_auto_build -O-v -O--buildsystem=pybuild
> pybuild --build --test-pytest -i python{version} -p "3.9 3.8"
> I: pybuild base:217: /usr/bin/python3.9 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne
> copying spyne/application.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne
> copying spyne/evmgr.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne
> copying spyne/error.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne
> copying spyne/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne
> copying spyne/decorator.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne
> copying spyne/descriptor.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne
> copying spyne/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne
> copying spyne/service.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne
> copying spyne/context.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server
> copying spyne/server/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server
> copying spyne/server/http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server
> copying spyne/server/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server
> copying spyne/server/wsgi.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server
> copying spyne/server/django.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server
> copying spyne/server/zeromq.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server
> copying spyne/server/pyramid.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server
> copying spyne/server/null.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server
> copying spyne/server/msgpack.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/client
> copying spyne/client/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/client
> copying spyne/client/http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/client
> copying spyne/client/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/client
> copying spyne/client/django.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/client
> copying spyne/client/zeromq.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/client
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/coopmt.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/six.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/memo.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/fileproxy.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/simple.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/address.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/resource.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/tdict.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/toposort.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/dictdoc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/xml.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/cherry.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/odict.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/tlist.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/django.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/wsgi_wrapper.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/oset.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/appreg.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/test.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/meta.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/attrdict.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/_twisted_ws.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/web.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/autorel.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/etreeconv.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/protocol.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/cdict.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/dyninit.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/invregexp.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/email.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> copying spyne/util/color.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/interface
> copying spyne/interface/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/interface
> copying spyne/interface/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/interface
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/const
> copying spyne/const/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/const
> copying spyne/const/http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/const
> copying spyne/const/xml.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/const
> copying spyne/const/xml_ns.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/const
> copying spyne/const/ansi_color.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/const
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/store
> copying spyne/store/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/store
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model
> copying spyne/model/enum.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model
> copying spyne/model/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model
> copying spyne/model/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model
> copying spyne/model/fault.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model
> copying spyne/model/binary.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model
> copying spyne/model/complex.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model
> copying spyne/model/table.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model
> copying spyne/model/addtl.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/auxproc
> copying spyne/auxproc/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/auxproc
> copying spyne/auxproc/sync.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/auxproc
> copying spyne/auxproc/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/auxproc
> copying spyne/auxproc/thread.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/auxproc
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol
> copying spyne/protocol/csv.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol
> copying spyne/protocol/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol
> copying spyne/protocol/json.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol
> copying spyne/protocol/http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol
> copying spyne/protocol/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol
> copying spyne/protocol/xml.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol
> copying spyne/protocol/_inbase.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol
> copying spyne/protocol/_outbase.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol
> copying spyne/protocol/yaml.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol
> copying spyne/protocol/msgpack.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test
> copying spyne/test/test_service.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test
> copying spyne/test/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test
> copying spyne/test/test_sqlalchemy_deprecated.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test
> copying spyne/test/sort_wsdl.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test
> copying spyne/test/test_null_server.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test
> copying spyne/test/test_sqlalchemy.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test
> copying spyne/test/test_soft_validation.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test
> copying spyne/test/regen_wsdl.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server/twisted
> copying spyne/server/twisted/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server/twisted
> copying spyne/server/twisted/http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server/twisted
> copying spyne/server/twisted/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server/twisted
> copying spyne/server/twisted/websocket.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server/twisted
> copying spyne/server/twisted/msgpack.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server/twisted
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/client/twisted
> copying spyne/client/twisted/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/client/twisted
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/interface/wsdl
> copying spyne/interface/wsdl/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/interface/wsdl
> copying spyne/interface/wsdl/defn.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/interface/wsdl
> copying spyne/interface/wsdl/wsdl11.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/interface/wsdl
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/interface/xml_schema
> copying spyne/interface/xml_schema/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/interface/xml_schema
> copying spyne/interface/xml_schema/parser.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/interface/xml_schema
> copying spyne/interface/xml_schema/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/interface/xml_schema
> copying spyne/interface/xml_schema/defn.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/interface/xml_schema
> copying spyne/interface/xml_schema/model.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/interface/xml_schema
> copying spyne/interface/xml_schema/genpy.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/interface/xml_schema
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/store/relational
> copying spyne/store/relational/document.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/store/relational
> copying spyne/store/relational/simple.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/store/relational
> copying spyne/store/relational/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/store/relational
> copying spyne/store/relational/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/store/relational
> copying spyne/store/relational/override.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/store/relational
> copying spyne/store/relational/util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/store/relational
> copying spyne/store/relational/spatial.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/store/relational
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model/primitive
> copying spyne/model/primitive/string.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model/primitive
> copying spyne/model/primitive/datetime.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model/primitive
> copying spyne/model/primitive/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model/primitive
> copying spyne/model/primitive/network.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model/primitive
> copying spyne/model/primitive/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model/primitive
> copying spyne/model/primitive/xml.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model/primitive
> copying spyne/model/primitive/number.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model/primitive
> copying spyne/model/primitive/spatial.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model/primitive
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/dictdoc
> copying spyne/protocol/dictdoc/simple.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/dictdoc
> copying spyne/protocol/dictdoc/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/dictdoc
> copying spyne/protocol/dictdoc/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/dictdoc
> copying spyne/protocol/dictdoc/hier.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/dictdoc
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/soap
> copying spyne/protocol/soap/soap12.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/soap
> copying spyne/protocol/soap/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/soap
> copying spyne/protocol/soap/mime.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/soap
> copying spyne/protocol/soap/soap11.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/soap
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/html
> copying spyne/protocol/html/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/html
> copying spyne/protocol/html/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/html
> copying spyne/protocol/html/microformat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/html
> copying spyne/protocol/html/addtl.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/html
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/cloth
> copying spyne/protocol/cloth/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/cloth
> copying spyne/protocol/cloth/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/cloth
> copying spyne/protocol/cloth/to_parent.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/cloth
> copying spyne/protocol/cloth/to_cloth.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/cloth
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/html/table
> copying spyne/protocol/html/table/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/html/table
> copying spyne/protocol/html/table/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/html/table
> copying spyne/protocol/html/table/row.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/html/table
> copying spyne/protocol/html/table/column.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/html/table
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/util
> copying spyne/test/util/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/util
> copying spyne/test/util/test_util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/util
> copying spyne/test/util/test_address.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/util
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interface
> copying spyne/test/interface/test_interface.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interface
> copying spyne/test/interface/test_wsgi.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interface
> copying spyne/test/interface/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interface
> copying spyne/test/interface/test_xml_schema.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interface
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop
> copying spyne/test/interop/test_soap_client_zeromq.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop
> copying spyne/test/interop/test_zeep.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop
> copying spyne/test/interop/test_httprpc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop
> copying spyne/test/interop/_test_soap_client_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop
> copying spyne/test/interop/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop
> copying spyne/test/interop/test_pyramid.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop
> copying spyne/test/interop/test_suds.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop
> copying spyne/test/interop/test_django.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop
> copying spyne/test/interop/test_wsi.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop
> copying spyne/test/interop/test_soap_client_http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop
> copying spyne/test/interop/test_soap_client_http_twisted.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop
> copying spyne/test/interop/test_msgpackrpc_client_http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/transport
> copying spyne/test/transport/test_msgpack.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/transport
> copying spyne/test/transport/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/transport
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/model
> copying spyne/test/model/test_complex.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/model
> copying spyne/test/model/test_primitive.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/model
> copying spyne/test/model/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/model
> copying spyne/test/model/test_binary.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/model
> copying spyne/test/model/test_enum.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/model
> copying spyne/test/model/test_exception.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/model
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol
> copying spyne/test/protocol/test_msgpack.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol
> copying spyne/test/protocol/test_html_table.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol
> copying spyne/test/protocol/test_cloth.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol
> copying spyne/test/protocol/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol
> copying spyne/test/protocol/test_soap11.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol
> copying spyne/test/protocol/test_html_microformat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol
> copying spyne/test/protocol/test_soap12.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol
> copying spyne/test/protocol/_test_dictdoc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol
> copying spyne/test/protocol/test_yaml.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol
> copying spyne/test/protocol/test_json.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol
> copying spyne/test/protocol/test_xml.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol
> copying spyne/test/protocol/test_http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/multipython
> copying spyne/test/multipython/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/multipython
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interface/wsdl
> copying spyne/test/interface/wsdl/defult_services.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interface/wsdl
> copying spyne/test/interface/wsdl/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interface/wsdl
> copying spyne/test/interface/wsdl/test_wsdl_ports_services.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interface/wsdl
> copying spyne/test/interface/wsdl/port_service_services.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interface/wsdl
> copying spyne/test/interface/wsdl/test_op_req_suffix.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interface/wsdl
> copying spyne/test/interface/wsdl/test_default_wsdl.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interface/wsdl
> copying spyne/test/interface/wsdl/test_bindings.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interface/wsdl
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server
> copying spyne/test/interop/server/httprpc_csv_basic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server
> copying spyne/test/interop/server/msgpackrpc_http_basic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server
> copying spyne/test/interop/server/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server
> copying spyne/test/interop/server/httprpc_pod_basic_twisted.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server
> copying spyne/test/interop/server/_service.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server
> copying spyne/test/interop/server/httprpc_pod_basic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server/soap12
> copying spyne/test/interop/server/soap12/soap_zeromq.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server/soap12
> copying spyne/test/interop/server/soap12/httprpc_soap_basic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server/soap12
> copying spyne/test/interop/server/soap12/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server/soap12
> copying spyne/test/interop/server/soap12/soap_http_basic_twisted.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server/soap12
> copying spyne/test/interop/server/soap12/soap_http_static.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server/soap12
> copying spyne/test/interop/server/soap12/soap_http_basic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server/soap12
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server/soap11
> copying spyne/test/interop/server/soap11/soap_zeromq.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server/soap11
> copying spyne/test/interop/server/soap11/httprpc_soap_basic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server/soap11
> copying spyne/test/interop/server/soap11/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server/soap11
> copying spyne/test/interop/server/soap11/soap_http_basic_twisted.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server/soap11
> copying spyne/test/interop/server/soap11/soap_http_static.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server/soap11
> copying spyne/test/interop/server/soap11/soap_http_basic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/interop/server/soap11
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/multipython/model
> copying spyne/test/multipython/model/test_complex.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/multipython/model
> copying spyne/test/multipython/model/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/multipython/model
> I: pybuild base:217: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne
> copying spyne/application.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne
> copying spyne/evmgr.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne
> copying spyne/error.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne
> copying spyne/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne
> copying spyne/decorator.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne
> copying spyne/descriptor.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne
> copying spyne/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne
> copying spyne/service.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne
> copying spyne/context.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/server
> copying spyne/server/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/server
> copying spyne/server/http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/server
> copying spyne/server/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/server
> copying spyne/server/wsgi.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/server
> copying spyne/server/django.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/server
> copying spyne/server/zeromq.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/server
> copying spyne/server/pyramid.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/server
> copying spyne/server/null.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/server
> copying spyne/server/msgpack.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/server
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/client
> copying spyne/client/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/client
> copying spyne/client/http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/client
> copying spyne/client/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/client
> copying spyne/client/django.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/client
> copying spyne/client/zeromq.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/client
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/coopmt.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/six.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/memo.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/fileproxy.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/simple.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/address.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/resource.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/tdict.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/toposort.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/dictdoc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/xml.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/cherry.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/odict.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/tlist.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/django.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/wsgi_wrapper.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/oset.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/appreg.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/test.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/meta.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/attrdict.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/_twisted_ws.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/web.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/autorel.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/etreeconv.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/protocol.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/cdict.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/dyninit.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/invregexp.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/email.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> copying spyne/util/color.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/util
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/interface
> copying spyne/interface/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/interface
> copying spyne/interface/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/interface
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/const
> copying spyne/const/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/const
> copying spyne/const/http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/const
> copying spyne/const/xml.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/const
> copying spyne/const/xml_ns.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/const
> copying spyne/const/ansi_color.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/const
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/store
> copying spyne/store/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/store
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model
> copying spyne/model/enum.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model
> copying spyne/model/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model
> copying spyne/model/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model
> copying spyne/model/fault.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model
> copying spyne/model/binary.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model
> copying spyne/model/complex.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model
> copying spyne/model/table.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model
> copying spyne/model/addtl.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/auxproc
> copying spyne/auxproc/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/auxproc
> copying spyne/auxproc/sync.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/auxproc
> copying spyne/auxproc/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/auxproc
> copying spyne/auxproc/thread.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/auxproc
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol
> copying spyne/protocol/csv.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol
> copying spyne/protocol/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol
> copying spyne/protocol/json.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol
> copying spyne/protocol/http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol
> copying spyne/protocol/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol
> copying spyne/protocol/xml.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol
> copying spyne/protocol/_inbase.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol
> copying spyne/protocol/_outbase.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol
> copying spyne/protocol/yaml.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol
> copying spyne/protocol/msgpack.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test
> copying spyne/test/test_service.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test
> copying spyne/test/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test
> copying spyne/test/test_sqlalchemy_deprecated.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test
> copying spyne/test/sort_wsdl.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test
> copying spyne/test/test_null_server.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test
> copying spyne/test/test_sqlalchemy.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test
> copying spyne/test/test_soft_validation.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test
> copying spyne/test/regen_wsdl.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/server/twisted
> copying spyne/server/twisted/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/server/twisted
> copying spyne/server/twisted/http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/server/twisted
> copying spyne/server/twisted/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/server/twisted
> copying spyne/server/twisted/websocket.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/server/twisted
> copying spyne/server/twisted/msgpack.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/server/twisted
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/client/twisted
> copying spyne/client/twisted/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/client/twisted
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/interface/wsdl
> copying spyne/interface/wsdl/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/interface/wsdl
> copying spyne/interface/wsdl/defn.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/interface/wsdl
> copying spyne/interface/wsdl/wsdl11.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/interface/wsdl
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/interface/xml_schema
> copying spyne/interface/xml_schema/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/interface/xml_schema
> copying spyne/interface/xml_schema/parser.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/interface/xml_schema
> copying spyne/interface/xml_schema/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/interface/xml_schema
> copying spyne/interface/xml_schema/defn.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/interface/xml_schema
> copying spyne/interface/xml_schema/model.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/interface/xml_schema
> copying spyne/interface/xml_schema/genpy.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/interface/xml_schema
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/store/relational
> copying spyne/store/relational/document.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/store/relational
> copying spyne/store/relational/simple.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/store/relational
> copying spyne/store/relational/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/store/relational
> copying spyne/store/relational/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/store/relational
> copying spyne/store/relational/override.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/store/relational
> copying spyne/store/relational/util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/store/relational
> copying spyne/store/relational/spatial.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/store/relational
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model/primitive
> copying spyne/model/primitive/string.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model/primitive
> copying spyne/model/primitive/datetime.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model/primitive
> copying spyne/model/primitive/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model/primitive
> copying spyne/model/primitive/network.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model/primitive
> copying spyne/model/primitive/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model/primitive
> copying spyne/model/primitive/xml.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model/primitive
> copying spyne/model/primitive/number.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model/primitive
> copying spyne/model/primitive/spatial.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/model/primitive
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/dictdoc
> copying spyne/protocol/dictdoc/simple.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/dictdoc
> copying spyne/protocol/dictdoc/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/dictdoc
> copying spyne/protocol/dictdoc/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/dictdoc
> copying spyne/protocol/dictdoc/hier.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/dictdoc
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/soap
> copying spyne/protocol/soap/soap12.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/soap
> copying spyne/protocol/soap/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/soap
> copying spyne/protocol/soap/mime.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/soap
> copying spyne/protocol/soap/soap11.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/soap
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/html
> copying spyne/protocol/html/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/html
> copying spyne/protocol/html/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/html
> copying spyne/protocol/html/microformat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/html
> copying spyne/protocol/html/addtl.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/html
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/cloth
> copying spyne/protocol/cloth/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/cloth
> copying spyne/protocol/cloth/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/cloth
> copying spyne/protocol/cloth/to_parent.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/cloth
> copying spyne/protocol/cloth/to_cloth.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/cloth
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/html/table
> copying spyne/protocol/html/table/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/html/table
> copying spyne/protocol/html/table/_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/html/table
> copying spyne/protocol/html/table/row.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/html/table
> copying spyne/protocol/html/table/column.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/protocol/html/table
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/util
> copying spyne/test/util/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/util
> copying spyne/test/util/test_util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/util
> copying spyne/test/util/test_address.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/util
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interface
> copying spyne/test/interface/test_interface.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interface
> copying spyne/test/interface/test_wsgi.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interface
> copying spyne/test/interface/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interface
> copying spyne/test/interface/test_xml_schema.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interface
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop
> copying spyne/test/interop/test_soap_client_zeromq.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop
> copying spyne/test/interop/test_zeep.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop
> copying spyne/test/interop/test_httprpc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop
> copying spyne/test/interop/_test_soap_client_base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop
> copying spyne/test/interop/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop
> copying spyne/test/interop/test_pyramid.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop
> copying spyne/test/interop/test_suds.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop
> copying spyne/test/interop/test_django.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop
> copying spyne/test/interop/test_wsi.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop
> copying spyne/test/interop/test_soap_client_http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop
> copying spyne/test/interop/test_soap_client_http_twisted.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop
> copying spyne/test/interop/test_msgpackrpc_client_http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/transport
> copying spyne/test/transport/test_msgpack.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/transport
> copying spyne/test/transport/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/transport
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/model
> copying spyne/test/model/test_complex.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/model
> copying spyne/test/model/test_primitive.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/model
> copying spyne/test/model/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/model
> copying spyne/test/model/test_binary.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/model
> copying spyne/test/model/test_enum.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/model
> copying spyne/test/model/test_exception.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/model
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/protocol
> copying spyne/test/protocol/test_msgpack.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/protocol
> copying spyne/test/protocol/test_html_table.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/protocol
> copying spyne/test/protocol/test_cloth.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/protocol
> copying spyne/test/protocol/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/protocol
> copying spyne/test/protocol/test_soap11.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/protocol
> copying spyne/test/protocol/test_html_microformat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/protocol
> copying spyne/test/protocol/test_soap12.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/protocol
> copying spyne/test/protocol/_test_dictdoc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/protocol
> copying spyne/test/protocol/test_yaml.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/protocol
> copying spyne/test/protocol/test_json.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/protocol
> copying spyne/test/protocol/test_xml.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/protocol
> copying spyne/test/protocol/test_http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/protocol
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/multipython
> copying spyne/test/multipython/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/multipython
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interface/wsdl
> copying spyne/test/interface/wsdl/defult_services.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interface/wsdl
> copying spyne/test/interface/wsdl/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interface/wsdl
> copying spyne/test/interface/wsdl/test_wsdl_ports_services.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interface/wsdl
> copying spyne/test/interface/wsdl/port_service_services.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interface/wsdl
> copying spyne/test/interface/wsdl/test_op_req_suffix.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interface/wsdl
> copying spyne/test/interface/wsdl/test_default_wsdl.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interface/wsdl
> copying spyne/test/interface/wsdl/test_bindings.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interface/wsdl
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server
> copying spyne/test/interop/server/httprpc_csv_basic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server
> copying spyne/test/interop/server/msgpackrpc_http_basic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server
> copying spyne/test/interop/server/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server
> copying spyne/test/interop/server/httprpc_pod_basic_twisted.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server
> copying spyne/test/interop/server/_service.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server
> copying spyne/test/interop/server/httprpc_pod_basic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server/soap12
> copying spyne/test/interop/server/soap12/soap_zeromq.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server/soap12
> copying spyne/test/interop/server/soap12/httprpc_soap_basic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server/soap12
> copying spyne/test/interop/server/soap12/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server/soap12
> copying spyne/test/interop/server/soap12/soap_http_basic_twisted.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server/soap12
> copying spyne/test/interop/server/soap12/soap_http_static.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server/soap12
> copying spyne/test/interop/server/soap12/soap_http_basic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server/soap12
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server/soap11
> copying spyne/test/interop/server/soap11/soap_zeromq.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server/soap11
> copying spyne/test/interop/server/soap11/httprpc_soap_basic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server/soap11
> copying spyne/test/interop/server/soap11/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server/soap11
> copying spyne/test/interop/server/soap11/soap_http_basic_twisted.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server/soap11
> copying spyne/test/interop/server/soap11/soap_http_static.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server/soap11
> copying spyne/test/interop/server/soap11/soap_http_basic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/interop/server/soap11
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/multipython/model
> copying spyne/test/multipython/model/test_complex.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/multipython/model
> copying spyne/test/multipython/model/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/spyne/test/multipython/model
> dh_auto_test -O-v -O--buildsystem=pybuild
> pybuild --test --test-pytest -i python{version} -p "3.9 3.8"
> I: pybuild base:217: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build; python3.9 -m pytest --ignore=spyne/test/interop --ignore=examples
> ============================= test session starts ==============================
> platform linux -- Python 3.9.0+, pytest-4.6.11, py-1.9.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> collected 738 items
>
> spyne/test/test_null_server.py .... [ 0%]
> spyne/test/test_service.py ................. [ 2%]
> spyne/test/test_soft_validation.py ......... [ 4%]
> spyne/test/test_sqlalchemy.py .......................................... [ 9%]
> . [ 9%]
> spyne/test/test_sqlalchemy_deprecated.py ........... [ 11%]
> spyne/test/interface/test_interface.py .. [ 11%]
> spyne/test/interface/test_wsgi.py ... [ 12%]
> spyne/test/interface/test_xml_schema.py ..................... [ 14%]
> spyne/test/interface/wsdl/test_bindings.py .. [ 15%]
> spyne/test/interface/wsdl/test_default_wsdl.py ....... [ 16%]
> spyne/test/interface/wsdl/test_op_req_suffix.py ................... [ 18%]
> spyne/test/interface/wsdl/test_wsdl_ports_services.py ........ [ 19%]
> spyne/test/model/test_binary.py . [ 19%]
> spyne/test/model/test_complex.py ....................................... [ 25%]
> .......................... [ 28%]
> spyne/test/model/test_enum.py .... [ 29%]
> spyne/test/model/test_exception.py ......... [ 30%]
> spyne/test/model/test_primitive.py ..................................... [ 35%]
> .......................... [ 39%]
> spyne/test/multipython/model/test_complex.py ........... [ 40%]
> spyne/test/protocol/test_cloth.py ............................ [ 44%]
> spyne/test/protocol/test_html_microformat.py ...... [ 45%]
> spyne/test/protocol/test_html_table.py ........... [ 46%]
> spyne/test/protocol/test_http.py ....................................... [ 51%]
> ........ [ 52%]
> spyne/test/protocol/test_json.py ....................................... [ 58%]
> ............................ [ 62%]
> spyne/test/protocol/test_msgpack.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 66%]
> FFFFFFFFFFFFFFFFFFFFFFFF.. [ 70%]
> spyne/test/protocol/test_soap11.py .............. [ 72%]
> spyne/test/protocol/test_soap12.py ............ [ 73%]
> spyne/test/protocol/test_xml.py .......................... [ 77%]
> spyne/test/protocol/test_yaml.py ....................................... [ 82%]
> ...................... [ 85%]
> spyne/test/transport/test_msgpack.py FF [ 86%]
> spyne/test/util/test_address.py ........................................ [ 91%]
> ............................... [ 95%]
> spyne/test/util/test_util.py ................................ [100%]
>
> =================================== FAILURES ===================================
> ____________________ TestMessagePackDocument.test_any_dict _____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_any_dict>
>
> def test_any_dict(self):
> d = {'helo': 213, 'data': {'nested': [12, 0.3]}}
>
> class SomeService(Service):
> @srpc(AnyDict, _returns=AnyDict)
> def some_call(p):
> print(p)
> print(type(p))
> assert type(p) == dict
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:437:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5295700>
> ctx = MethodContext(
> call_start=1603801843.8492613,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4594970>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive._base.AnyDict'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive._base.AnyDict'>" for '{http://www.w3.org/2001/XMLSchema}anyType'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive._base.AnyDict'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd50b4610>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive._base.AnyDict'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive._base.AnyDict'>" for '{http://www.w3.org/2001/XMLSchema}anyType'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive._base.AnyDict'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd50b4610>).
> ____________________ TestMessagePackDocument.test_any_html _____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_any_html>
>
> def test_any_html(self):
> d = lxml.html.tostring(E('div', E('span', "something")),
> encoding='unicode')
>
> class SomeService(Service):
> @srpc(AnyHtml, _returns=AnyHtml)
> def some_call(p):
> print(p)
> print(type(p))
> assert type(p) == lxml.html.HtmlElement
> return p
>
> > ctx = _dry_me([SomeService], {"some_call": [d]})
>
> spyne/test/protocol/_test_dictdoc.py:417:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce6a89a0>
> ctx = MethodContext(
> call_start=1603801843.8935373,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce6a8a00>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive._base.AnyHtml'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive._base.AnyHtml'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive._base.AnyHtml'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce6a86a0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive._base.AnyHtml'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive._base.AnyHtml'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive._base.AnyHtml'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce6a86a0>).
> _____________________ TestMessagePackDocument.test_any_uri _____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_any_uri>
>
> def test_any_uri(self):
> d = 'http://example.com/?asd=b12&df=aa#tag'
>
> class SomeService(Service):
> @srpc(AnyUri, _returns=AnyUri)
> def some_call(p):
> print(p)
> print(type(p))
> assert isinstance(p, six.string_types)
> return p
>
> > ctx = _dry_me([SomeService], {"some_call": [d]})
>
> spyne/test/protocol/_test_dictdoc.py:476:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd40d04f0>
> ctx = MethodContext(
> call_start=1603801843.984565,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd40d0700>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.string.AnyUri'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.AnyUri'>" for '{http://www.w3.org/2001/XMLSchema}anyURI'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.string.AnyUri'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd411edc0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.string.AnyUri'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.AnyUri'>" for '{http://www.w3.org/2001/XMLSchema}anyURI'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.string.AnyUri'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd411edc0>).
> _____________________ TestMessagePackDocument.test_any_xml _____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_any_xml>
>
> def test_any_xml(self):
> d = lxml.etree.tostring(E('{ns1}x', E('{ns2}Y', "some data")),
> encoding='unicode')
>
> class SomeService(Service):
> @srpc(AnyXml, _returns=AnyXml)
> def some_call(p):
> print(p)
> print(type(p))
> assert type(p) == lxml.etree._Element
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:397:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd556cd30>
> ctx = MethodContext(
> call_start=1603801844.025359,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd59b73a0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive._base.AnyXml'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive._base.AnyXml'>" for '{http://www.w3.org/2001/XMLSchema}anyType'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive._base.AnyXml'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd40505b0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive._base.AnyXml'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive._base.AnyXml'>" for '{http://www.w3.org/2001/XMLSchema}anyType'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive._base.AnyXml'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd40505b0>).
> _____________________ TestMessagePackDocument.test_boolean _____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_boolean>
>
> def test_boolean(self):
> d = True
>
> class SomeService(Service):
> @srpc(Boolean, _returns=Boolean)
> def some_call(p):
> print(p)
> print(type(p))
> assert type(p) == bool
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:726:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4231790>
> ctx = MethodContext(
> call_start=1603801844.0649695,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd411eee0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive._base.Boolean'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive._base.Boolean'>" for '{http://www.w3.org/2001/XMLSchema}boolean'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive._base.Boolean'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd5d65eb0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive._base.Boolean'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive._base.Boolean'>" for '{http://www.w3.org/2001/XMLSchema}boolean'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive._base.Boolean'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd5d65eb0>).
> ____________________ TestMessagePackDocument.test_bytearray ____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_bytearray>
>
> def test_bytearray(self):
> dbe = _DictDocumentChild.default_binary_encoding
> beh = binary_encoding_handlers[dbe]
>
> data = bytes(bytearray(range(0xff)))
> encoded_data = beh([data])
> if _DictDocumentChild.text_based:
> encoded_data = encoded_data.decode('latin1')
>
> class SomeService(Service):
> @srpc(ByteArray, _returns=ByteArray)
> def some_call(ba):
> print(ba)
> print(type(ba))
> assert isinstance(ba, tuple)
> assert ba == (data,)
> return ba
>
> > ctx = _dry_me([SomeService], {"some_call": [encoded_data]})
>
> spyne/test/protocol/_test_dictdoc.py:1015:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd51b9790>
> ctx = MethodContext(
> call_start=1603801844.104377,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4050040>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.ba = <class 'spyne.model.binary.ByteArray'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.binary.ByteArray'>" for '{http://www.w3.org/2001/XMLSchema}base64Binary'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.binary.ByteArray'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4471430>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.ba = <class 'spyne.model.binary.ByteArray'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.binary.ByteArray'>" for '{http://www.w3.org/2001/XMLSchema}base64Binary'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.binary.ByteArray'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4471430>).
> _____________________ TestMessagePackDocument.test_complex _____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_complex>
>
> def test_complex(self):
> class CM(ComplexModel):
> i = Integer
> s = Unicode
>
> class CCM(ComplexModel):
> c = CM
> i = Integer
> s = Unicode
>
> class SomeService(Service):
> @srpc(CCM, _returns=CCM)
> def some_call(ccm):
> return CCM(c=ccm.c, i=ccm.i, s=ccm.s)
>
> > ctx = _dry_me([SomeService], {"some_call":
> {"ccm": {"CCM":{
> "c":{"CM":{"i":3, "s": "3x"}},
> "i":4,
> "s": "4x",
> }}}
> })
>
> spyne/test/protocol/_test_dictdoc.py:207:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd57fbd00>
> ctx = MethodContext(
> call_start=1603801844.1447146,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd57fbdf0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for CM from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for CCM from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.ccm = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex.<locals>.CCM'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex.<locals>.CCM'>" for '{spyne.test.protocol}CCM'
> DEBUG:spyne.interface._base: adding CCM.c = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex.<locals>.CM'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex.<locals>.CM'>" for '{spyne.test.protocol}CM'
> DEBUG:spyne.interface._base: adding CM.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: adding CM.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding CCM.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding CCM.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: importing 'spyne.test.protocol' to 'tns' for some_call.ccm(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex.<locals>.CCM'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex.<locals>.CCM'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4354d30>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for CM from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for CCM from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.ccm = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex.<locals>.CCM'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex.<locals>.CCM'>" for '{spyne.test.protocol}CCM'
> DEBUG spyne.interface._base:_base.py:445 adding CCM.c = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex.<locals>.CM'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex.<locals>.CM'>" for '{spyne.test.protocol}CM'
> DEBUG spyne.interface._base:_base.py:445 adding CM.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:445 adding CM.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:445 adding CCM.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:445 adding CCM.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:458 importing 'spyne.test.protocol' to 'tns' for some_call.ccm(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex.<locals>.CCM'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex.<locals>.CCM'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4354d30>).
> _______ TestMessagePackDocument.test_complex_with_only_primitive_fields ________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_complex_with_only_primitive_fields>
>
> def test_complex_with_only_primitive_fields(self):
> class SomeComplexModel(ComplexModel):
> i = Integer
> s = Unicode
>
> class SomeService(Service):
> @srpc(SomeComplexModel, _returns=SomeComplexModel)
> def some_call(scm):
> return SomeComplexModel(i=5, s='5x')
>
> > ctx = _dry_me([SomeService], {"some_call":[]})
>
> spyne/test/protocol/_test_dictdoc.py:184:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5759190>
> ctx = MethodContext(
> call_start=1603801844.2309542,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd443eca0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for SomeComplexModel from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.scm = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex_with_only_primitive_fields.<locals>.SomeComplexModel'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex_with_only_primitive_fields.<locals>.SomeComplexModel'>" for '{spyne.test.protocol}SomeComplexModel'
> DEBUG:spyne.interface._base: adding SomeComplexModel.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: adding SomeComplexModel.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: importing 'spyne.test.protocol' to 'tns' for some_call.scm(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex_with_only_primitive_fields.<locals>.SomeComplexModel'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex_with_only_primitive_fields.<locals>.SomeComplexModel'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd519fc10>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for SomeComplexModel from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.scm = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex_with_only_primitive_fields.<locals>.SomeComplexModel'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex_with_only_primitive_fields.<locals>.SomeComplexModel'>" for '{spyne.test.protocol}SomeComplexModel'
> DEBUG spyne.interface._base:_base.py:445 adding SomeComplexModel.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:445 adding SomeComplexModel.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:458 importing 'spyne.test.protocol' to 'tns' for some_call.scm(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex_with_only_primitive_fields.<locals>.SomeComplexModel'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_complex_with_only_primitive_fields.<locals>.SomeComplexModel'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd519fc10>).
> ______________________ TestMessagePackDocument.test_date _______________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_date>
>
> def test_date(self):
> vdt = datetime(2010, 9, 8)
> d = vdt.date().isoformat()
>
> class SomeService(Service):
> @srpc(Date, _returns=Date)
> def some_call(p):
> print(p)
> print(type(p))
> assert type(p) == date
> assert p.isoformat() == d
> return p
>
> @srpc(_returns=Date)
> def some_call_dt():
> return vdt
>
> > ctx = _dry_me([SomeService], {"some_call": [d]})
>
> spyne/test/protocol/_test_dictdoc.py:642:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5286520>
> ctx = MethodContext(
> call_start=1603801844.2733765,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5286b80>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_call_dt from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_call_dtResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.datetime.Date'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.datetime.Date'>" for '{http://www.w3.org/2001/XMLSchema}date'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.datetime.Date'>
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call_dt'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call_dt'>" for '{tns}some_call_dt'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call_dtResponse'>" for '{tns}some_call_dtResponse'
> DEBUG:spyne.interface._base: adding some_call_dtResponse.some_call_dtResult = <class 'spyne.model.primitive.datetime.Date'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base: adding method SomeService.some_call_dt to match '{tns}some_call_dt' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd5286910>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call_dt from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call_dtResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.datetime.Date'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.datetime.Date'>" for '{http://www.w3.org/2001/XMLSchema}date'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.datetime.Date'>
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call_dt'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call_dt'>" for '{tns}some_call_dt'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call_dtResponse'>" for '{tns}some_call_dtResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_call_dtResponse.some_call_dtResult = <class 'spyne.model.primitive.datetime.Date'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call_dt to match '{tns}some_call_dt' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd5286910>).
> ____________________ TestMessagePackDocument.test_datetime _____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_datetime>
>
> def test_datetime(self):
> d = datetime(2010, 9, 8, 7, 6, 5).isoformat()
>
> class SomeService(Service):
> @srpc(DateTime, _returns=DateTime(timezone=False))
> def some_call(p):
> print(p)
> print(type(p))
> assert type(p) == datetime
> assert p.replace(tzinfo=None).isoformat() == d
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]}, validator='soft')
>
> spyne/test/protocol/_test_dictdoc.py:668:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd519f970>
> ctx = MethodContext(
> call_start=1603801844.313083,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd519ff10>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: dateTime: setting timezone=False
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4415be0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 dateTime: setting timezone=False
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4415be0>).
> ___________________ TestMessagePackDocument.test_datetime_tz ___________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_datetime_tz>
>
> def test_datetime_tz(self):
> d = datetime(2010, 9, 8, 7, 6, 5, tzinfo=pytz.utc).isoformat()
>
> class SomeService(Service):
> @srpc(DateTime, _returns=DateTime(ge=datetime(2010,1,1,tzinfo=pytz.utc)))
> def some_call(p):
> print(p)
> print(type(p))
> assert type(p) == datetime
> assert p.isoformat() == d
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]}, validator='soft')
>
> spyne/test/protocol/_test_dictdoc.py:688:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eaf10>
> ctx = MethodContext(
> call_start=1603801844.3540761,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: dateTime: setting ge=datetime.datetime(2010, 1, 1, 0, 0, tzinfo=<UTC>)
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{tns}some_callResponse_some_callResultType'
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4406490>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 dateTime: setting ge=datetime.datetime(2010, 1, 1, 0, 0, tzinfo=<UTC>)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{tns}some_callResponse_some_callResultType'
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4406490>).
> _____________________ TestMessagePackDocument.test_decimal _____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_decimal>
>
> def test_decimal(self):
> d = decimal.Decimal('1e100')
> if _DictDocumentChild._decimal_as_string:
> d = str(d)
>
> class SomeService(Service):
> @srpc(Decimal, _returns=Decimal)
> def some_call(p):
> print(p)
> print(type(p))
> assert type(p) == decimal.Decimal
> return p
>
> > ctx = _dry_me([SomeService], {"some_call": [d]})
>
> spyne/test/protocol/_test_dictdoc.py:516:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd40ecf10>
> ctx = MethodContext(
> call_start=1603801844.3937616,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd40ecb50>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.number.Decimal'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Decimal'>" for '{http://www.w3.org/2001/XMLSchema}decimal'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.number.Decimal'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4471cd0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.number.Decimal'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Decimal'>" for '{http://www.w3.org/2001/XMLSchema}decimal'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.number.Decimal'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4471cd0>).
> _____________________ TestMessagePackDocument.test_default _____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_default>
>
> def test_default(self):
> class SomeComplexModel(ComplexModel):
> _type_info = [
> ('a', Unicode),
> ('b', Unicode(default='default')),
> ]
>
> class SomeService(Service):
> @srpc(SomeComplexModel)
> def some_method(s):
> pass
>
> > ctx = _dry_me([SomeService],
> {"some_method": [{"s": {"a": "x", "b": None}}]},
> polymorphic=True)
>
> spyne/test/protocol/_test_dictdoc.py:1343:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd44cebb0>
> ctx = MethodContext(
> call_start=1603801844.47657,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application ...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd44ce7c0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: string: setting default='default'
> DEBUG:spyne.model.complex:Got bases for SomeComplexModel from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_method from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_methodResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_method'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_method'>" for '{tns}some_method'
> DEBUG:spyne.interface._base: adding some_method.s = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_default.<locals>.SomeComplexModel'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_default.<locals>.SomeComplexModel'>" for '{spyne.test.protocol}SomeComplexModel'
> DEBUG:spyne.interface._base: adding SomeComplexModel.a = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding SomeComplexModel.b = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: importing 'spyne.test.protocol' to 'tns' for some_method.s(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_default.<locals>.SomeComplexModel'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_methodResponse'>" for '{tns}some_methodResponse'
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_method to match '{tns}some_method' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd44cea30>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 string: setting default='default'
> DEBUG spyne.model.complex:complex.py:287 Got bases for SomeComplexModel from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_method from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_methodResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_method'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_method'>" for '{tns}some_method'
> DEBUG spyne.interface._base:_base.py:445 adding some_method.s = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_default.<locals>.SomeComplexModel'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_default.<locals>.SomeComplexModel'>" for '{spyne.test.protocol}SomeComplexModel'
> DEBUG spyne.interface._base:_base.py:445 adding SomeComplexModel.a = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:445 adding SomeComplexModel.b = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:458 importing 'spyne.test.protocol' to 'tns' for some_method.s(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_default.<locals>.SomeComplexModel'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_methodResponse'>" for '{tns}some_methodResponse'
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_method to match '{tns}some_method' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd44cea30>).
> _____________________ TestMessagePackDocument.test_double ______________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_double>
>
> def test_double(self):
> d = 12.3467
>
> class SomeService(Service):
> @srpc(Double, _returns=Double)
> def some_call(p):
> print(p)
> print(type(p))
> assert type(p) == float
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:535:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd44ceb20>
> ctx = MethodContext(
> call_start=1603801844.5153975,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd44ce7f0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.number.Double'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Double'>" for '{http://www.w3.org/2001/XMLSchema}double'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.number.Double'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4fb56d0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.number.Double'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Double'>" for '{http://www.w3.org/2001/XMLSchema}double'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.number.Double'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4fb56d0>).
> ____________________ TestMessagePackDocument.test_duration _____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_duration>
>
> def test_duration(self):
> d = ProtocolBase().to_unicode(Duration, timedelta(0, 45))
>
> class SomeService(Service):
> @srpc(Duration, _returns=Duration)
> def some_call(p):
> print(p)
> print(type(p))
> assert type(p) == timedelta
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:707:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4354d30>
> ctx = MethodContext(
> call_start=1603801844.5543327,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce7277f0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.datetime.Duration'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.datetime.Duration'>" for '{http://www.w3.org/2001/XMLSchema}duration'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.datetime.Duration'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd443e9d0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.datetime.Duration'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.datetime.Duration'>" for '{http://www.w3.org/2001/XMLSchema}duration'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.datetime.Duration'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd443e9d0>).
> _____________________ TestMessagePackDocument.test_exclude _____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_exclude>
>
> def test_exclude(self):
> class C(ComplexModel):
> s1 = Unicode(exc=True)
> s2 = Unicode
>
> class SomeService(Service):
> @srpc(C, _returns=C)
> def some_call(sc):
> assert sc.s1 is None, "sc={}".format(sc)
> assert sc.s2 == "s2"
> return C(s1="s1", s2="s2")
>
> doc = [{"C": {"s1": "s1","s2": "s2"}}]
> > ctx = _dry_me([SomeService], {"some_call": doc})
>
> spyne/test/protocol/_test_dictdoc.py:1288:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4192e80>
> ctx = MethodContext(
> call_start=1603801844.5936463,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4192bb0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: string: setting exc=True
> DEBUG:spyne.model.complex:Got bases for C from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.sc = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_exclude.<locals>.C'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_exclude.<locals>.C'>" for '{spyne.test.protocol}C'
> DEBUG:spyne.interface._base: adding C.s1 = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding C.s2 = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: importing 'spyne.test.protocol' to 'tns' for some_call.sc(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_exclude.<locals>.C'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_exclude.<locals>.C'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd43cd9d0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 string: setting exc=True
> DEBUG spyne.model.complex:complex.py:287 Got bases for C from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.sc = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_exclude.<locals>.C'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_exclude.<locals>.C'>" for '{spyne.test.protocol}C'
> DEBUG spyne.interface._base:_base.py:445 adding C.s1 = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:445 adding C.s2 = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:458 importing 'spyne.test.protocol' to 'tns' for some_call.sc(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_exclude.<locals>.C'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_exclude.<locals>.C'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd43cd9d0>).
> __________________ TestMessagePackDocument.test_fault_to_dict __________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_fault_to_dict>
>
> def test_fault_to_dict(self):
> class SomeService(Service):
> @srpc(_returns=String)
> def some_call():
> raise Fault()
>
> > _dry_me([SomeService], {"some_call":[]})
>
> spyne/test/protocol/_test_dictdoc.py:366:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd649c6d0>
> ctx = MethodContext(
> call_start=1603801844.6338568,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4081c10>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd51c0400>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd51c0400>).
> ____________________ TestMessagePackDocument.test_file_data ____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_file_data>
>
> def test_file_data(self):
> # the only difference with the bytearray test is/are the types
> # inside @srpc
> dbe = _DictDocumentChild.default_binary_encoding
> beh = binary_encoding_handlers[dbe]
>
> data = bytes(bytearray(range(0xff)))
> encoded_data = beh([data])
> if _DictDocumentChild.text_based:
> encoded_data = encoded_data.decode('latin1')
>
> class SomeService(Service):
> @srpc(File, _returns=File)
> def some_call(p):
> print(p)
> print(type(p))
> assert isinstance(p, File.Value)
> assert p.data == (data,)
> return p.data
>
> # we put the encoded data in the list of arguments.
> > ctx = _dry_me([SomeService], {"some_call": [encoded_data]})
>
> spyne/test/protocol/_test_dictdoc.py:1046:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4580040>
> ctx = MethodContext(
> call_start=1603801844.7166412,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4580df0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.binary.File'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.binary.File'>" for '{http://www.w3.org/2001/XMLSchema}base64Binary'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.binary.File'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4580520>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.binary.File'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.binary.File'>" for '{http://www.w3.org/2001/XMLSchema}base64Binary'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.binary.File'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4580520>).
> ___________________ TestMessagePackDocument.test_file_value ____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_file_value>
>
> def test_file_value(self):
> dbe = _DictDocumentChild.default_binary_encoding
> beh = binary_encoding_handlers[dbe]
>
> # Prepare data
> v = File.Value(
> name='some_file.bin',
> type='application/octet-stream',
> )
> file_data = bytes(bytearray(range(0xff)))
> v.data = (file_data,)
> beh([file_data])
> if _DictDocumentChild.text_based:
> test_data = beh(v.data).decode('latin1')
> else:
> test_data = beh(v.data)
>
> print(repr(v.data))
>
> class SomeService(Service):
> @srpc(File, _returns=File)
> def some_call(p):
> print(p)
> print(type(p))
> assert isinstance(p, File.Value)
> assert p.data == (file_data,)
> assert p.type == v.type
> assert p.name == v.name
> return p
>
> d = get_object_as_dict(v, File, protocol=_DictDocumentChild,
> ignore_wrappers=False)
> > ctx = _dry_me([SomeService], {"some_call": {'p': d}})
>
> spyne/test/protocol/_test_dictdoc.py:1088:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4365520>
> ctx = MethodContext(
> call_start=1603801844.7579398,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4305550>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stdout call -----------------------------
> (b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe',)
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 0
> DEBUG:spyne.protocol._base:PMORPH Skipped: <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> is NOT polymorphic
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 1
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 2
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 2
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 2
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 2
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> sortcache size: 0
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 2
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 3
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 4
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG:spyne.protocol.dictdoc.hier: 'name'<class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG:spyne.protocol._base:PMORPH Skipped: <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> is NOT polymorphic
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG:spyne.protocol.dictdoc.hier: 'type'<class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG:spyne.protocol._base:PMORPH Skipped: <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> is NOT polymorphic
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG:spyne.protocol.dictdoc.hier: 'data'<class 'spyne.model.binary.ByteArray'>
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG:spyne.protocol._base:PMORPH Skipped: <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> is NOT polymorphic
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG:spyne.protocol._base:<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG:spyne.protocol._outbase:Using binary encoder <function _default_binary_encoding at 0x7f7bd8dec790> for encoding None
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.binary.File'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.binary.File'>" for '{http://www.w3.org/2001/XMLSchema}base64Binary'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.binary.File'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd527a4f0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 0
> DEBUG spyne.protocol._base:_base.py:256 PMORPH Skipped: <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> is NOT polymorphic
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 1
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 2
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 2
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 2
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 2
> DEBUG spyne.protocol._base:_base.py:390 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> sortcache size: 0
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 2
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 3
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 4
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG spyne.protocol.dictdoc.hier:hier.py:462 'name'<class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG spyne.protocol._base:_base.py:256 PMORPH Skipped: <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> is NOT polymorphic
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG spyne.protocol.dictdoc.hier:hier.py:462 'type'<class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG spyne.protocol._base:_base.py:256 PMORPH Skipped: <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> is NOT polymorphic
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG spyne.protocol.dictdoc.hier:hier.py:462 'data'<class 'spyne.model.binary.ByteArray'>
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG spyne.protocol._base:_base.py:256 PMORPH Skipped: <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> is NOT polymorphic
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG spyne.protocol._base:_base.py:188 <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd58eae80> attrcache size: 5
> DEBUG spyne.protocol._outbase:_outbase.py:476 Using binary encoder <function _default_binary_encoding at 0x7f7bd8dec790> for encoding None
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.binary.File'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.binary.File'>" for '{http://www.w3.org/2001/XMLSchema}base64Binary'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.binary.File'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd527a4f0>).
> ____________________ TestMessagePackDocument.test_generator ____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_generator>
>
> def test_generator(self):
> class SomeService(Service):
> @srpc(_returns=Iterable(Integer))
> def some_call():
> return iter(range(1000))
>
> > ctx = _dry_me([SomeService], {"some_call":[]})
>
> spyne/test/protocol/_test_dictdoc.py:989:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4365070>
> ctx = MethodContext(
> call_start=1603801844.7978146,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd527acd0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for Iterable from orig: (<class 'spyne.model.complex.Array'>,)
> DEBUG:spyne.model._base: integer: setting max_occurs=Decimal('Infinity')
> DEBUG:spyne.model._base: integer: setting max_str_len=Decimal('Infinity')
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.complex.Iterable'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.Iterable'>" for '{tns}integerArray'
> DEBUG:spyne.interface._base: adding integerArray.integer = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4580d90>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:284 Got bases for Iterable from orig: (<class 'spyne.model.complex.Array'>,)
> DEBUG spyne.model._base:_base.py:648 integer: setting max_occurs=Decimal('Infinity')
> DEBUG spyne.model._base:_base.py:648 integer: setting max_str_len=Decimal('Infinity')
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.complex.Iterable'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.Iterable'>" for '{tns}integerArray'
> DEBUG spyne.interface._base:_base.py:445 adding integerArray.integer = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4580d90>).
> ____________________ TestMessagePackDocument.test_image_uri ____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_image_uri>
>
> def test_image_uri(self):
> d = 'http://example.com/funny.gif'
>
> class SomeService(Service):
> @srpc(ImageUri, _returns=ImageUri)
> def some_call(p):
> print(p)
> print(type(p))
> assert isinstance(p, six.string_types)
> return p
>
> > ctx = _dry_me([SomeService], {"some_call": [d]})
>
> spyne/test/protocol/_test_dictdoc.py:495:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4365640>
> ctx = MethodContext(
> call_start=1603801844.8378017,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4365820>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.string.ImageUri'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.ImageUri'>" for '{http://www.w3.org/2001/XMLSchema}anyURI'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.string.ImageUri'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd40dca60>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.string.ImageUri'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.ImageUri'>" for '{http://www.w3.org/2001/XMLSchema}anyURI'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.string.ImageUri'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd40dca60>).
> ___________________ TestMessagePackDocument.test_inheritance ___________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_inheritance>
>
> def test_inheritance(self):
> class P(ComplexModel):
> identifier = Uuid
> signature = Unicode
>
> class C(P):
> foo = Unicode
> bar = Uuid
>
> class SomeService(Service):
> @rpc(_returns=C)
> def some_call(ctx):
> result = C()
> result.identifier = uuid.UUID(int=0)
> result.signature = 'yyyyyyyyyyy'
> result.foo = 'zzzzzz'
> result.bar = uuid.UUID(int=1)
> return result
>
> > ctx = _dry_me([SomeService], {"some_call": []})
>
> spyne/test/protocol/_test_dictdoc.py:1263:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4fd3df0>
> ctx = MethodContext(
> call_start=1603801844.8782725,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4fd32e0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for P from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for C from meta: (<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_inheritance.<locals>.P'>,)
> DEBUG:spyne.model.complex:Registering <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_inheritance.<locals>.P'> as base of 'C'
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_inheritance.<locals>.C'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_inheritance.<locals>.C'>" for '{spyne.test.protocol}C'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_inheritance.<locals>.P'>" for '{spyne.test.protocol}P'
> DEBUG:spyne.interface._base: adding P.identifier = <class 'spyne.model.primitive.string.Uuid'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Uuid'>" for '{http://spyne.io/schema}uuid'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: importing 'http://spyne.io/schema' to 'spyne.test.protocol' for P.identifier(<class 'spyne.model.primitive.string.Uuid'>)
> DEBUG:spyne.interface._base: adding P.signature = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding subclasses of 'spyne.test.protocol.P'...
> DEBUG:spyne.interface._base: adding C.foo = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding C.bar = <class 'spyne.model.primitive.string.Uuid'>
> DEBUG:spyne.interface._base: importing 'spyne.test.protocol' to 'tns' for some_callResponse.some_callResult(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_inheritance.<locals>.C'>)
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4594f10>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for P from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for C from meta: (<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_inheritance.<locals>.P'>,)
> DEBUG spyne.model.complex:complex.py:318 Registering <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_inheritance.<locals>.P'> as base of 'C'
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_inheritance.<locals>.C'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_inheritance.<locals>.C'>" for '{spyne.test.protocol}C'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_inheritance.<locals>.P'>" for '{spyne.test.protocol}P'
> DEBUG spyne.interface._base:_base.py:445 adding P.identifier = <class 'spyne.model.primitive.string.Uuid'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Uuid'>" for '{http://spyne.io/schema}uuid'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:458 importing 'http://spyne.io/schema' to 'spyne.test.protocol' for P.identifier(<class 'spyne.model.primitive.string.Uuid'>)
> DEBUG spyne.interface._base:_base.py:445 adding P.signature = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:491 adding subclasses of 'spyne.test.protocol.P'...
> DEBUG spyne.interface._base:_base.py:445 adding C.foo = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:445 adding C.bar = <class 'spyne.model.primitive.string.Uuid'>
> DEBUG spyne.interface._base:_base.py:458 importing 'spyne.test.protocol' to 'tns' for some_callResponse.some_callResult(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_inheritance.<locals>.C'>)
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4594f10>).
> _____________________ TestMessagePackDocument.test_integer _____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_integer>
>
> def test_integer(self):
> d = 5
>
> class SomeService(Service):
> @srpc(Integer, _returns=Integer)
> def some_call(p):
> print(p)
> print(type(p))
> assert type(p) == int
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:554:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5005c10>
> ctx = MethodContext(
> call_start=1603801844.9626966,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5005310>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce72a2b0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce72a2b0>).
> _________________ TestMessagePackDocument.test_integer_way_big _________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_integer_way_big>
>
> def test_integer_way_big(self):
> d = 1<<1000
> if _DictDocumentChild._huge_numbers_as_string:
> d = str(d)
>
> class SomeService(Service):
> @srpc(Integer, _returns=Integer)
> def some_call(p):
> print(p)
> print(type(p))
> assert type(p) == long
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:597:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4423610>
> ctx = MethodContext(
> call_start=1603801845.003107,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd44236a0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd43e2cd0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd43e2cd0>).
> ________________ TestMessagePackDocument.test_integer_way_small ________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_integer_way_small>
>
> def test_integer_way_small(self):
> d = -1<<1000
> if _DictDocumentChild._huge_numbers_as_string:
> d = str(d)
>
> class SomeService(Service):
> @srpc(Integer, _returns=Integer)
> def some_call(p):
> print(p)
> print(type(p))
> assert type(p) == long
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:575:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4fce2b0>
> ctx = MethodContext(
> call_start=1603801845.0429423,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4fcecd0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4fce4f0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4fce4f0>).
> ________________ TestMessagePackDocument.test_invalid_datetime _________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_invalid_datetime>
>
> def test_invalid_datetime(self):
> class SomeService(Service):
> @srpc(Integer, String, Mandatory.DateTime)
> def yay(i,s,d):
> print(i,s,d)
>
> > ctx = _dry_me([SomeService],{"yay": {"d":"a2011"}},validator='soft',
> just_in_object=True)
>
> spyne/test/protocol/_test_dictdoc.py:355:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd44e5d30>
> ctx = MethodContext(
> call_start=1603801845.0831385,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd44e5130>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for yay from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for yayResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'yay'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.yay'>" for '{tns}yay'
> DEBUG:spyne.interface._base: adding yay.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: adding yay.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding yay.d = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.yayResponse'>" for '{tns}yayResponse'
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.yay to match '{tns}yay' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd44e5430>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for yay from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for yayResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'yay'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.yay'>" for '{tns}yay'
> DEBUG spyne.interface._base:_base.py:445 adding yay.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:445 adding yay.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:445 adding yay.d = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.yayResponse'>" for '{tns}yayResponse'
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.yay to match '{tns}yay' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd44e5430>).
> _________________ TestMessagePackDocument.test_invalid_number __________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_invalid_number>
>
> def test_invalid_number(self):
> class SomeService(Service):
> @srpc(Integer, String, DateTime)
> def yay(i,s,d):
> print(i,s,d)
>
> > ctx = _dry_me([SomeService], {"yay": ["s", "B"]}, validator='soft',
> just_in_object=True)
>
> spyne/test/protocol/_test_dictdoc.py:331:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5005d90>
> ctx = MethodContext(
> call_start=1603801845.1221144,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd442e190>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for yay from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for yayResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'yay'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.yay'>" for '{tns}yay'
> DEBUG:spyne.interface._base: adding yay.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: adding yay.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding yay.d = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.yayResponse'>" for '{tns}yayResponse'
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.yay to match '{tns}yay' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd413d430>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for yay from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for yayResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'yay'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.yay'>" for '{tns}yay'
> DEBUG spyne.interface._base:_base.py:445 adding yay.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:445 adding yay.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:445 adding yay.d = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.yayResponse'>" for '{tns}yayResponse'
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.yay to match '{tns}yay' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd413d430>).
> _________________ TestMessagePackDocument.test_invalid_request _________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_invalid_request>
>
> def test_invalid_request(self):
> class SomeService(Service):
> @srpc(Integer, String, DateTime)
> def yay(i,s,d):
> print(i,s,d)
>
> > ctx = _dry_me([SomeService], {"some_call": {"yay": []}},
> just_in_object=True)
>
> spyne/test/protocol/_test_dictdoc.py:308:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd500c400>
> ctx = MethodContext(
> call_start=1603801845.20338,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application ...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd500c550>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for yay from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for yayResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'yay'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.yay'>" for '{tns}yay'
> DEBUG:spyne.interface._base: adding yay.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: adding yay.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding yay.d = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.yayResponse'>" for '{tns}yayResponse'
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.yay to match '{tns}yay' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd54880a0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for yay from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for yayResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'yay'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.yay'>" for '{tns}yay'
> DEBUG spyne.interface._base:_base.py:445 adding yay.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:445 adding yay.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:445 adding yay.d = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.yayResponse'>" for '{tns}yayResponse'
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.yay to match '{tns}yay' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd54880a0>).
> _________________ TestMessagePackDocument.test_invalid_string __________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_invalid_string>
>
> def test_invalid_string(self):
> class SomeService(Service):
> @srpc(Integer, String, DateTime)
> def yay(i,s,d):
> print(i, s, d)
>
> > ctx = _dry_me([SomeService], {"yay": {"s": 1}}, validator='soft',
> just_in_object=True)
>
> spyne/test/protocol/_test_dictdoc.py:320:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd452cc70>
> ctx = MethodContext(
> call_start=1603801845.2435648,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd452c9a0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for yay from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for yayResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'yay'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.yay'>" for '{tns}yay'
> DEBUG:spyne.interface._base: adding yay.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: adding yay.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding yay.d = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.yayResponse'>" for '{tns}yayResponse'
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.yay to match '{tns}yay' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd452cbe0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for yay from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for yayResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'yay'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.yay'>" for '{tns}yay'
> DEBUG spyne.interface._base:_base.py:445 adding yay.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:445 adding yay.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:445 adding yay.d = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.yayResponse'>" for '{tns}yayResponse'
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.yay to match '{tns}yay' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd452cbe0>).
> _____________________ TestMessagePackDocument.test_line2d ______________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_line2d>
>
> def test_line2d(self):
> d = 'LINESTRING(1 2, 3 4)'
>
> class SomeService(Service):
> @srpc(Line, _returns=Line)
> def some_call(p):
> print(p)
> print(type(p))
> assert isinstance(p, six.string_types)
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:802:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd500c9a0>
> ctx = MethodContext(
> call_start=1603801845.284805,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd500c790>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.spatial.Line'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.spatial.Line'>" for '{http://www.w3.org/2001/XMLSchema}Line'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.Line'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd44ce610>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.spatial.Line'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.spatial.Line'>" for '{http://www.w3.org/2001/XMLSchema}Line'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.Line'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd44ce610>).
> _____________________ TestMessagePackDocument.test_line3d ______________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_line3d>
>
> def test_line3d(self):
> d = 'LINESTRING(1 2 3, 4 5 6)'
>
> class SomeService(Service):
> @srpc(Line, _returns=Line)
> def some_call(p):
> print(p)
> print(type(p))
> assert isinstance(p, six.string_types)
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:821:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5246d90>
> ctx = MethodContext(
> call_start=1603801845.3241642,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd52461c0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.spatial.Line'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.spatial.Line'>" for '{http://www.w3.org/2001/XMLSchema}Line'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.Line'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd43d68b0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.spatial.Line'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.spatial.Line'>" for '{http://www.w3.org/2001/XMLSchema}Line'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.Line'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd43d68b0>).
> __________________ TestMessagePackDocument.test_missing_value __________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_missing_value>
>
> def test_missing_value(self):
> class SomeService(Service):
> @srpc(Integer, Unicode, Mandatory.DateTime)
> def yay(i, s, d):
> print(i, s, d)
>
> > ctx = _dry_me([SomeService], {"yay": [1, "B"]}, validator='soft',
> just_in_object=True)
>
> spyne/test/protocol/_test_dictdoc.py:342:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4282340>
> ctx = MethodContext(
> call_start=1603801845.363533,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4282850>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for yay from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for yayResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'yay'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.yay'>" for '{tns}yay'
> DEBUG:spyne.interface._base: adding yay.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: adding yay.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding yay.d = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.yayResponse'>" for '{tns}yayResponse'
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.yay to match '{tns}yay' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4282100>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for yay from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for yayResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'yay'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.yay'>" for '{tns}yay'
> DEBUG spyne.interface._base:_base.py:445 adding yay.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:445 adding yay.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:445 adding yay.d = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.yayResponse'>" for '{tns}yayResponse'
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.yay to match '{tns}yay' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4282100>).
> ___________________ TestMessagePackDocument.test_multiline2d ___________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_multiline2d>
>
> def test_multiline2d(self):
> d = 'MULTILINESTRING ((10 10, 20 20, 10 40), (40 40, 30 30, 40 20, 30 10))'
>
> class SomeService(Service):
> @srpc(MultiLine(2), _returns=MultiLine(2))
> def some_call(p):
> print(p)
> print(type(p))
> assert isinstance(p, six.string_types)
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:916:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd44f0670>
> ctx = MethodContext(
> call_start=1603801845.446185,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd44f01c0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: MultiLine: setting dim=2
> DEBUG:spyne.model._base: MultiLine: setting pattern='MULTILINESTRING\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*'
> DEBUG:spyne.model._base: MultiLine: setting _explicit_type_name=True because we have 'type_name'
> DEBUG:spyne.model._base:Type name for <class 'spyne.model.primitive.spatial.MultiLine'> was overridden as 'multiLine2d'
> DEBUG:spyne.model._base: MultiLine: setting dim=2
> DEBUG:spyne.model._base: MultiLine: setting pattern='MULTILINESTRING\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*'
> DEBUG:spyne.model._base: MultiLine: setting _explicit_type_name=True because we have 'type_name'
> DEBUG:spyne.model._base:Type name for <class 'spyne.model.primitive.spatial.MultiLine'> was overridden as 'multiLine2d'
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.spatial.MultiLine'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.spatial.MultiLine'>" for '{http://spyne.io/schema}multiLine2d'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.spatial.MultiLine'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.MultiLine'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd43cd8e0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 MultiLine: setting dim=2
> DEBUG spyne.model._base:_base.py:648 MultiLine: setting pattern='MULTILINESTRING\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*'
> DEBUG spyne.model._base:_base.py:648 MultiLine: setting _explicit_type_name=True because we have 'type_name'
> DEBUG spyne.model._base:_base.py:881 Type name for <class 'spyne.model.primitive.spatial.MultiLine'> was overridden as 'multiLine2d'
> DEBUG spyne.model._base:_base.py:648 MultiLine: setting dim=2
> DEBUG spyne.model._base:_base.py:648 MultiLine: setting pattern='MULTILINESTRING\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*'
> DEBUG spyne.model._base:_base.py:648 MultiLine: setting _explicit_type_name=True because we have 'type_name'
> DEBUG spyne.model._base:_base.py:881 Type name for <class 'spyne.model.primitive.spatial.MultiLine'> was overridden as 'multiLine2d'
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.spatial.MultiLine'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.spatial.MultiLine'>" for '{http://spyne.io/schema}multiLine2d'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:458 importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.spatial.MultiLine'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.MultiLine'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd43cd8e0>).
> ___________________ TestMessagePackDocument.test_multiline3d ___________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_multiline3d>
>
> def test_multiline3d(self):
> d = 'MULTILINESTRING ((10 10, 20 20, 10 40), (40 40, 30 30, 40 20, 30 10))'
>
> class SomeService(Service):
> @srpc(MultiLine(3), _returns=MultiLine(3))
> def some_call(p):
> print(p)
> print(type(p))
> assert isinstance(p, six.string_types)
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:935:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd44f0d30>
> ctx = MethodContext(
> call_start=1603801845.486149,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd43d6520>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: MultiLine: setting dim=3
> DEBUG:spyne.model._base: MultiLine: setting pattern='MULTILINESTRING\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*'
> DEBUG:spyne.model._base: MultiLine: setting _explicit_type_name=True because we have 'type_name'
> DEBUG:spyne.model._base:Type name for <class 'spyne.model.primitive.spatial.MultiLine'> was overridden as 'multiLine3d'
> DEBUG:spyne.model._base: MultiLine: setting dim=3
> DEBUG:spyne.model._base: MultiLine: setting pattern='MULTILINESTRING\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*'
> DEBUG:spyne.model._base: MultiLine: setting _explicit_type_name=True because we have 'type_name'
> DEBUG:spyne.model._base:Type name for <class 'spyne.model.primitive.spatial.MultiLine'> was overridden as 'multiLine3d'
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.spatial.MultiLine'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.spatial.MultiLine'>" for '{http://spyne.io/schema}multiLine3d'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.spatial.MultiLine'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.MultiLine'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd43d60a0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 MultiLine: setting dim=3
> DEBUG spyne.model._base:_base.py:648 MultiLine: setting pattern='MULTILINESTRING\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*'
> DEBUG spyne.model._base:_base.py:648 MultiLine: setting _explicit_type_name=True because we have 'type_name'
> DEBUG spyne.model._base:_base.py:881 Type name for <class 'spyne.model.primitive.spatial.MultiLine'> was overridden as 'multiLine3d'
> DEBUG spyne.model._base:_base.py:648 MultiLine: setting dim=3
> DEBUG spyne.model._base:_base.py:648 MultiLine: setting pattern='MULTILINESTRING\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*'
> DEBUG spyne.model._base:_base.py:648 MultiLine: setting _explicit_type_name=True because we have 'type_name'
> DEBUG spyne.model._base:_base.py:881 Type name for <class 'spyne.model.primitive.spatial.MultiLine'> was overridden as 'multiLine3d'
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.spatial.MultiLine'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.spatial.MultiLine'>" for '{http://spyne.io/schema}multiLine3d'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:458 importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.spatial.MultiLine'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.MultiLine'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd43d60a0>).
> __________________ TestMessagePackDocument.test_multiple_dict __________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_multiple_dict>
>
> def test_multiple_dict(self):
> class SomeService(Service):
> @srpc(Unicode(max_occurs=decimal.Decimal('inf')),
> _returns=Unicode(max_occurs=decimal.Decimal('inf')))
> def some_call(s):
> return s
>
> > ctx = _dry_me([SomeService], {"some_call":{"s":["a","b"]}})
>
> spyne/test/protocol/_test_dictdoc.py:246:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd44f0970>
> ctx = MethodContext(
> call_start=1603801845.5261338,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd44f0c10>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: string: setting max_occurs=Decimal('Infinity')
> DEBUG:spyne.model._base: string: setting max_occurs=Decimal('Infinity')
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd44864f0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 string: setting max_occurs=Decimal('Infinity')
> DEBUG spyne.model._base:_base.py:648 string: setting max_occurs=Decimal('Infinity')
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd44864f0>).
> _______________ TestMessagePackDocument.test_multiple_dict_array _______________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_multiple_dict_array>
>
> def test_multiple_dict_array(self):
> class SomeService(Service):
> @srpc(Iterable(Unicode), _returns=Iterable(Unicode))
> def some_call(s):
> return s
>
> > ctx = _dry_me([SomeService], {"some_call":{"s":["a","b"]}})
>
> spyne/test/protocol/_test_dictdoc.py:257:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5295370>
> ctx = MethodContext(
> call_start=1603801845.5655897,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd52955e0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for Iterable from orig: (<class 'spyne.model.complex.Array'>,)
> DEBUG:spyne.model._base: string: setting max_occurs=Decimal('Infinity')
> DEBUG:spyne.model.complex:Got bases for Iterable from orig: (<class 'spyne.model.complex.Array'>,)
> DEBUG:spyne.model._base: string: setting max_occurs=Decimal('Infinity')
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.s = <class 'spyne.model.complex.Iterable'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.Iterable'>" for '{tns}stringArray'
> DEBUG:spyne.interface._base: adding stringArray.string = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.complex.Iterable'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce7cb4c0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:284 Got bases for Iterable from orig: (<class 'spyne.model.complex.Array'>,)
> DEBUG spyne.model._base:_base.py:648 string: setting max_occurs=Decimal('Infinity')
> DEBUG spyne.model.complex:complex.py:284 Got bases for Iterable from orig: (<class 'spyne.model.complex.Array'>,)
> DEBUG spyne.model._base:_base.py:648 string: setting max_occurs=Decimal('Infinity')
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.s = <class 'spyne.model.complex.Iterable'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.Iterable'>" for '{tns}stringArray'
> DEBUG spyne.interface._base:_base.py:445 adding stringArray.string = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.complex.Iterable'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce7cb4c0>).
> ___________ TestMessagePackDocument.test_multiple_dict_complex_array ___________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_multiple_dict_complex_array>
>
> def test_multiple_dict_complex_array(self):
> class CM(ComplexModel):
> i = Integer
> s = Unicode
>
> class CCM(ComplexModel):
> c = CM
> i = Integer
> s = Unicode
>
> class ECM(CCM):
> d = DateTime
>
> class SomeService(Service):
> @srpc(Iterable(ECM), _returns=Iterable(ECM))
> def some_call(ecm):
> return ecm
>
> > ctx = _dry_me([SomeService], {
> "some_call": {"ecm": [{"ECM": {
> "c": {"CM":{"i":3, "s": "3x"}},
> "i":4,
> "s": "4x",
> "d": "2011-12-13T14:15:16Z"
> }}]
> }})
>
> spyne/test/protocol/_test_dictdoc.py:280:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce79cd00>
> ctx = MethodContext(
> call_start=1603801845.649656,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce7cb940>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for CM from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for CCM from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for ECM from meta: (<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_multiple_dict_complex_array.<locals>.CCM'>,)
> DEBUG:spyne.model.complex:Registering <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_multiple_dict_complex_array.<locals>.CCM'> as base of 'ECM'
> DEBUG:spyne.model.complex:Got bases for Iterable from orig: (<class 'spyne.model.complex.Array'>,)
> DEBUG:spyne.model._base: ECM: setting max_occurs=Decimal('Infinity')
> DEBUG:spyne.model.complex:Got bases for Iterable from orig: (<class 'spyne.model.complex.Array'>,)
> DEBUG:spyne.model._base: ECM: setting max_occurs=Decimal('Infinity')
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.ecm = <class 'spyne.model.complex.Iterable'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.Iterable'>" for '{spyne.test.protocol}ECMArray'
> DEBUG:spyne.interface._base: adding ECMArray.ECM = <class 'spyne.test.protocol._test_dictdoc.ECM'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.ECM'>" for '{spyne.test.protocol}ECM'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_multiple_dict_complex_array.<locals>.CCM'>" for '{spyne.test.protocol}CCM'
> DEBUG:spyne.interface._base: adding CCM.c = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_multiple_dict_complex_array.<locals>.CM'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_multiple_dict_complex_array.<locals>.CM'>" for '{spyne.test.protocol}CM'
> DEBUG:spyne.interface._base: adding CM.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: adding CM.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding CCM.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding CCM.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding subclasses of 'spyne.test.protocol.CCM'...
> DEBUG:spyne.interface._base: adding ECM.d = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG:spyne.interface._base: importing 'spyne.test.protocol' to 'tns' for some_call.ecm(<class 'spyne.model.complex.Iterable'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.complex.Iterable'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd44869a0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for CM from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for CCM from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for ECM from meta: (<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_multiple_dict_complex_array.<locals>.CCM'>,)
> DEBUG spyne.model.complex:complex.py:318 Registering <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_multiple_dict_complex_array.<locals>.CCM'> as base of 'ECM'
> DEBUG spyne.model.complex:complex.py:284 Got bases for Iterable from orig: (<class 'spyne.model.complex.Array'>,)
> DEBUG spyne.model._base:_base.py:648 ECM: setting max_occurs=Decimal('Infinity')
> DEBUG spyne.model.complex:complex.py:284 Got bases for Iterable from orig: (<class 'spyne.model.complex.Array'>,)
> DEBUG spyne.model._base:_base.py:648 ECM: setting max_occurs=Decimal('Infinity')
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.ecm = <class 'spyne.model.complex.Iterable'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.Iterable'>" for '{spyne.test.protocol}ECMArray'
> DEBUG spyne.interface._base:_base.py:445 adding ECMArray.ECM = <class 'spyne.test.protocol._test_dictdoc.ECM'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.ECM'>" for '{spyne.test.protocol}ECM'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_multiple_dict_complex_array.<locals>.CCM'>" for '{spyne.test.protocol}CCM'
> DEBUG spyne.interface._base:_base.py:445 adding CCM.c = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_multiple_dict_complex_array.<locals>.CM'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_multiple_dict_complex_array.<locals>.CM'>" for '{spyne.test.protocol}CM'
> DEBUG spyne.interface._base:_base.py:445 adding CM.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:445 adding CM.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:445 adding CCM.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:445 adding CCM.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:491 adding subclasses of 'spyne.test.protocol.CCM'...
> DEBUG spyne.interface._base:_base.py:445 adding ECM.d = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG spyne.interface._base:_base.py:458 importing 'spyne.test.protocol' to 'tns' for some_call.ecm(<class 'spyne.model.complex.Iterable'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.complex.Iterable'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd44869a0>).
> __________________ TestMessagePackDocument.test_multiple_list __________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_multiple_list>
>
> def test_multiple_list(self):
> class SomeService(Service):
> @srpc(Unicode(max_occurs=decimal.Decimal('inf')),
> _returns=Unicode(max_occurs=decimal.Decimal('inf')))
> def some_call(s):
> return s
>
> > ctx = _dry_me([SomeService], {"some_call":[["a","b"]]})
>
> spyne/test/protocol/_test_dictdoc.py:231:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd42a4a00>
> ctx = MethodContext(
> call_start=1603801845.689105,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd42a4040>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: string: setting max_occurs=Decimal('Infinity')
> DEBUG:spyne.model._base: string: setting max_occurs=Decimal('Infinity')
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4fb5b50>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 string: setting max_occurs=Decimal('Infinity')
> DEBUG spyne.model._base:_base.py:648 string: setting max_occurs=Decimal('Infinity')
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4fb5b50>).
> __________________ TestMessagePackDocument.test_multipoint2d ___________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_multipoint2d>
>
> def test_multipoint2d(self):
> d = 'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))'
>
> class SomeService(Service):
> @srpc(MultiPoint(2), _returns=MultiPoint(2))
> def some_call(p):
> print(p)
> print(type(p))
> assert isinstance(p, six.string_types)
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:878:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce786f40>
> ctx = MethodContext(
> call_start=1603801845.72794,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application ...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce786c10>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: MultiPoint: setting dim=2
> DEBUG:spyne.model._base: MultiPoint: setting pattern='MULTIPOINT\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*'
> DEBUG:spyne.model._base: MultiPoint: setting _explicit_type_name=True because we have 'type_name'
> DEBUG:spyne.model._base:Type name for <class 'spyne.model.primitive.spatial.MultiPoint'> was overridden as 'multiPoint2d'
> DEBUG:spyne.model._base: MultiPoint: setting dim=2
> DEBUG:spyne.model._base: MultiPoint: setting pattern='MULTIPOINT\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*'
> DEBUG:spyne.model._base: MultiPoint: setting _explicit_type_name=True because we have 'type_name'
> DEBUG:spyne.model._base:Type name for <class 'spyne.model.primitive.spatial.MultiPoint'> was overridden as 'multiPoint2d'
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.spatial.MultiPoint'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.spatial.MultiPoint'>" for '{http://spyne.io/schema}multiPoint2d'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.spatial.MultiPoint'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.MultiPoint'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce786340>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 MultiPoint: setting dim=2
> DEBUG spyne.model._base:_base.py:648 MultiPoint: setting pattern='MULTIPOINT\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*'
> DEBUG spyne.model._base:_base.py:648 MultiPoint: setting _explicit_type_name=True because we have 'type_name'
> DEBUG spyne.model._base:_base.py:881 Type name for <class 'spyne.model.primitive.spatial.MultiPoint'> was overridden as 'multiPoint2d'
> DEBUG spyne.model._base:_base.py:648 MultiPoint: setting dim=2
> DEBUG spyne.model._base:_base.py:648 MultiPoint: setting pattern='MULTIPOINT\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*'
> DEBUG spyne.model._base:_base.py:648 MultiPoint: setting _explicit_type_name=True because we have 'type_name'
> DEBUG spyne.model._base:_base.py:881 Type name for <class 'spyne.model.primitive.spatial.MultiPoint'> was overridden as 'multiPoint2d'
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.spatial.MultiPoint'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.spatial.MultiPoint'>" for '{http://spyne.io/schema}multiPoint2d'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:458 importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.spatial.MultiPoint'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.MultiPoint'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce786340>).
> __________________ TestMessagePackDocument.test_multipoint3d ___________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_multipoint3d>
>
> def test_multipoint3d(self):
> d = 'MULTIPOINT (10 40 30, 40 30 10,)'
>
> class SomeService(Service):
> @srpc(MultiPoint(3), _returns=MultiPoint(3))
> def some_call(p):
> print(p)
> print(type(p))
> assert isinstance(p, six.string_types)
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:897:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd56c21c0>
> ctx = MethodContext(
> call_start=1603801845.7665393,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce7869d0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: MultiPoint: setting dim=3
> DEBUG:spyne.model._base: MultiPoint: setting pattern='MULTIPOINT\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*'
> DEBUG:spyne.model._base: MultiPoint: setting _explicit_type_name=True because we have 'type_name'
> DEBUG:spyne.model._base:Type name for <class 'spyne.model.primitive.spatial.MultiPoint'> was overridden as 'multiPoint3d'
> DEBUG:spyne.model._base: MultiPoint: setting dim=3
> DEBUG:spyne.model._base: MultiPoint: setting pattern='MULTIPOINT\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*'
> DEBUG:spyne.model._base: MultiPoint: setting _explicit_type_name=True because we have 'type_name'
> DEBUG:spyne.model._base:Type name for <class 'spyne.model.primitive.spatial.MultiPoint'> was overridden as 'multiPoint3d'
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.spatial.MultiPoint'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.spatial.MultiPoint'>" for '{http://spyne.io/schema}multiPoint3d'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.spatial.MultiPoint'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.MultiPoint'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd5138910>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 MultiPoint: setting dim=3
> DEBUG spyne.model._base:_base.py:648 MultiPoint: setting pattern='MULTIPOINT\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*'
> DEBUG spyne.model._base:_base.py:648 MultiPoint: setting _explicit_type_name=True because we have 'type_name'
> DEBUG spyne.model._base:_base.py:881 Type name for <class 'spyne.model.primitive.spatial.MultiPoint'> was overridden as 'multiPoint3d'
> DEBUG spyne.model._base:_base.py:648 MultiPoint: setting dim=3
> DEBUG spyne.model._base:_base.py:648 MultiPoint: setting pattern='MULTIPOINT\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*'
> DEBUG spyne.model._base:_base.py:648 MultiPoint: setting _explicit_type_name=True because we have 'type_name'
> DEBUG spyne.model._base:_base.py:881 Type name for <class 'spyne.model.primitive.spatial.MultiPoint'> was overridden as 'multiPoint3d'
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.spatial.MultiPoint'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.spatial.MultiPoint'>" for '{http://spyne.io/schema}multiPoint3d'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:458 importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.spatial.MultiPoint'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.MultiPoint'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd5138910>).
> _________________ TestMessagePackDocument.test_multipolygon2d __________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_multipolygon2d>
>
> def test_multipolygon2d(self):
> d = 'MULTIPOLYGON (((30 20, 10 40, 45 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))'
>
> class SomeService(Service):
> @srpc(MultiPolygon(2), _returns=MultiPolygon(2))
> def some_call(p):
> print(p)
> print(type(p))
> assert isinstance(p, six.string_types)
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:954:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce786b20>
> ctx = MethodContext(
> call_start=1603801845.8059669,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce786a60>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: MultiPolygon: setting dim=2
> DEBUG:spyne.model._base: MultiPolygon: setting pattern='MULTIPOLYGON\\s*\\(\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*\\s*(,\\s*\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*)*\\)\\s*'
> DEBUG:spyne.model._base: MultiPolygon: setting _explicit_type_name=True because we have 'type_name'
> DEBUG:spyne.model._base:Type name for <class 'spyne.model.primitive.spatial.MultiPolygon'> was overridden as 'multipolygon2d'
> DEBUG:spyne.model._base: MultiPolygon: setting dim=2
> DEBUG:spyne.model._base: MultiPolygon: setting pattern='MULTIPOLYGON\\s*\\(\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*\\s*(,\\s*\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*)*\\)\\s*'
> DEBUG:spyne.model._base: MultiPolygon: setting _explicit_type_name=True because we have 'type_name'
> DEBUG:spyne.model._base:Type name for <class 'spyne.model.primitive.spatial.MultiPolygon'> was overridden as 'multipolygon2d'
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.spatial.MultiPolygon'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.spatial.MultiPolygon'>" for '{http://spyne.io/schema}multipolygon2d'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.spatial.MultiPolygon'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.MultiPolygon'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd44e5e20>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 MultiPolygon: setting dim=2
> DEBUG spyne.model._base:_base.py:648 MultiPolygon: setting pattern='MULTIPOLYGON\\s*\\(\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*\\s*(,\\s*\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*)*\\)\\s*'
> DEBUG spyne.model._base:_base.py:648 MultiPolygon: setting _explicit_type_name=True because we have 'type_name'
> DEBUG spyne.model._base:_base.py:881 Type name for <class 'spyne.model.primitive.spatial.MultiPolygon'> was overridden as 'multipolygon2d'
> DEBUG spyne.model._base:_base.py:648 MultiPolygon: setting dim=2
> DEBUG spyne.model._base:_base.py:648 MultiPolygon: setting pattern='MULTIPOLYGON\\s*\\(\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*\\s*(,\\s*\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*)*\\)\\s*'
> DEBUG spyne.model._base:_base.py:648 MultiPolygon: setting _explicit_type_name=True because we have 'type_name'
> DEBUG spyne.model._base:_base.py:881 Type name for <class 'spyne.model.primitive.spatial.MultiPolygon'> was overridden as 'multipolygon2d'
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.spatial.MultiPolygon'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.spatial.MultiPolygon'>" for '{http://spyne.io/schema}multipolygon2d'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:458 importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.spatial.MultiPolygon'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.MultiPolygon'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd44e5e20>).
> _________________ TestMessagePackDocument.test_multipolygon3d __________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_multipolygon3d>
>
> def test_multipolygon3d(self):
> d = 'MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)),' \
> '((20 35, 45 20, 30 5, 10 10, 10 30, 20 35),' \
> '(30 20, 20 25, 20 15, 30 20)))'
>
> class SomeService(Service):
> @srpc(MultiPolygon(3), _returns=MultiPolygon(3))
> def some_call(p):
> print(p)
> print(type(p))
> assert isinstance(p, six.string_types)
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:975:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce7fad60>
> ctx = MethodContext(
> call_start=1603801845.8949137,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce7faa30>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: MultiPolygon: setting dim=3
> DEBUG:spyne.model._base: MultiPolygon: setting pattern='MULTIPOLYGON\\s*\\(\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*\\s*(,\\s*\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*)*\\)\\s*'
> DEBUG:spyne.model._base: MultiPolygon: setting _explicit_type_name=True because we have 'type_name'
> DEBUG:spyne.model._base:Type name for <class 'spyne.model.primitive.spatial.MultiPolygon'> was overridden as 'multipolygon3d'
> DEBUG:spyne.model._base: MultiPolygon: setting dim=3
> DEBUG:spyne.model._base: MultiPolygon: setting pattern='MULTIPOLYGON\\s*\\(\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*\\s*(,\\s*\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*)*\\)\\s*'
> DEBUG:spyne.model._base: MultiPolygon: setting _explicit_type_name=True because we have 'type_name'
> DEBUG:spyne.model._base:Type name for <class 'spyne.model.primitive.spatial.MultiPolygon'> was overridden as 'multipolygon3d'
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.spatial.MultiPolygon'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.spatial.MultiPolygon'>" for '{http://spyne.io/schema}multipolygon3d'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.spatial.MultiPolygon'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.MultiPolygon'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce7fa520>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 MultiPolygon: setting dim=3
> DEBUG spyne.model._base:_base.py:648 MultiPolygon: setting pattern='MULTIPOLYGON\\s*\\(\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*\\s*(,\\s*\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*)*\\)\\s*'
> DEBUG spyne.model._base:_base.py:648 MultiPolygon: setting _explicit_type_name=True because we have 'type_name'
> DEBUG spyne.model._base:_base.py:881 Type name for <class 'spyne.model.primitive.spatial.MultiPolygon'> was overridden as 'multipolygon3d'
> DEBUG spyne.model._base:_base.py:648 MultiPolygon: setting dim=3
> DEBUG spyne.model._base:_base.py:648 MultiPolygon: setting pattern='MULTIPOLYGON\\s*\\(\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*\\s*(,\\s*\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*)*\\)\\s*'
> DEBUG spyne.model._base:_base.py:648 MultiPolygon: setting _explicit_type_name=True because we have 'type_name'
> DEBUG spyne.model._base:_base.py:881 Type name for <class 'spyne.model.primitive.spatial.MultiPolygon'> was overridden as 'multipolygon3d'
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.spatial.MultiPolygon'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.spatial.MultiPolygon'>" for '{http://spyne.io/schema}multipolygon3d'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:458 importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.spatial.MultiPolygon'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.MultiPolygon'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce7fa520>).
> ________________ TestMessagePackDocument.test_nillable_default _________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_nillable_default>
>
> def test_nillable_default(self):
> class SomeComplexModel(ComplexModel):
> _type_info = [
> ('a', Unicode),
> ('b', Unicode(min_occurs=1, default='default', nillable=True)),
> ]
>
> class SomeService(Service):
> @srpc(SomeComplexModel)
> def some_method(s):
> pass
>
> > ctx = _dry_me([SomeService],
> {"some_method": [{"s": {"a": "x", "b": None}}]},
> polymorphic=True, validator='soft')
>
> spyne/test/protocol/_test_dictdoc.py:1368:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce7fa8e0>
> ctx = MethodContext(
> call_start=1603801845.9345553,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd45e94c0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: string: setting min_occurs=1
> DEBUG:spyne.model._base: string: setting default='default'
> DEBUG:spyne.model._base: string: setting nillable=True
> DEBUG:spyne.model.complex:Got bases for SomeComplexModel from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_method from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_methodResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_method'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_method'>" for '{tns}some_method'
> DEBUG:spyne.interface._base: adding some_method.s = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_nillable_default.<locals>.SomeComplexModel'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_nillable_default.<locals>.SomeComplexModel'>" for '{spyne.test.protocol}SomeComplexModel'
> DEBUG:spyne.interface._base: adding SomeComplexModel.a = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding SomeComplexModel.b = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: importing 'spyne.test.protocol' to 'tns' for some_method.s(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_nillable_default.<locals>.SomeComplexModel'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_methodResponse'>" for '{tns}some_methodResponse'
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_method to match '{tns}some_method' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce7e13a0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 string: setting min_occurs=1
> DEBUG spyne.model._base:_base.py:648 string: setting default='default'
> DEBUG spyne.model._base:_base.py:648 string: setting nillable=True
> DEBUG spyne.model.complex:complex.py:287 Got bases for SomeComplexModel from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_method from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_methodResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_method'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_method'>" for '{tns}some_method'
> DEBUG spyne.interface._base:_base.py:445 adding some_method.s = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_nillable_default.<locals>.SomeComplexModel'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_nillable_default.<locals>.SomeComplexModel'>" for '{spyne.test.protocol}SomeComplexModel'
> DEBUG spyne.interface._base:_base.py:445 adding SomeComplexModel.a = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:445 adding SomeComplexModel.b = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:458 importing 'spyne.test.protocol' to 'tns' for some_method.s(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_nillable_default.<locals>.SomeComplexModel'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_methodResponse'>" for '{tns}some_methodResponse'
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_method to match '{tns}some_method' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce7e13a0>).
> ___________________ TestMessagePackDocument.test_not_wrapped ___________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_not_wrapped>
>
> def test_not_wrapped(self):
> class SomeInnerClass(ComplexModel):
> d = date
> dt = datetime
>
> class SomeClass(ComplexModel):
> a = int
> b = Unicode
> c = SomeInnerClass.customize(not_wrapped=True)
>
> class SomeService(Service):
> @srpc(SomeClass.customize(not_wrapped=True),
> _returns=SomeClass.customize(not_wrapped=True))
> def some_call(p):
> assert p.a == 1
> assert p.b == 's'
> assert p.c.d == date(2018, 11, 22)
> return p
>
> inner = {"a": 1, "b": "s", "c": {"d": '2018-11-22'}}
> doc = {"some_call": [inner]}
> > ctx = _dry_me([SomeService], doc, validator='soft')
>
> spyne/test/protocol/_test_dictdoc.py:1211:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4568280>
> ctx = MethodContext(
> call_start=1603801845.9743605,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4568ac0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for SomeInnerClass from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model._base: SomeInnerClass: setting not_wrapped=True
> DEBUG:spyne.model.complex:Got bases for SomeInnerClass from orig: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for SomeClass from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model._base: SomeClass: setting not_wrapped=True
> DEBUG:spyne.model.complex:Got bases for SomeClass from orig: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model._base: SomeClass: setting not_wrapped=True
> DEBUG:spyne.model.complex:Got bases for SomeClass from orig: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.test.protocol._test_dictdoc.SomeClass'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.SomeClass'>" for '{spyne.test.protocol}SomeClass'
> DEBUG:spyne.interface._base: adding SomeClass.a = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: adding SomeClass.b = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding SomeClass.c = <class 'spyne.test.protocol._test_dictdoc.SomeInnerClass'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.SomeInnerClass'>" for '{spyne.test.protocol}SomeInnerClass'
> DEBUG:spyne.interface._base: adding SomeInnerClass.d = <class 'spyne.model.primitive.datetime.Date'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.datetime.Date'>" for '{http://www.w3.org/2001/XMLSchema}date'
> DEBUG:spyne.interface._base: adding SomeInnerClass.dt = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG:spyne.interface._base: importing 'spyne.test.protocol' to 'tns' for some_call.p(<class 'spyne.test.protocol._test_dictdoc.SomeClass'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.test.protocol._test_dictdoc.SomeClass'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4568f10>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for SomeInnerClass from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model._base:_base.py:648 SomeInnerClass: setting not_wrapped=True
> DEBUG spyne.model.complex:complex.py:284 Got bases for SomeInnerClass from orig: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for SomeClass from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model._base:_base.py:648 SomeClass: setting not_wrapped=True
> DEBUG spyne.model.complex:complex.py:284 Got bases for SomeClass from orig: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model._base:_base.py:648 SomeClass: setting not_wrapped=True
> DEBUG spyne.model.complex:complex.py:284 Got bases for SomeClass from orig: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.test.protocol._test_dictdoc.SomeClass'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.SomeClass'>" for '{spyne.test.protocol}SomeClass'
> DEBUG spyne.interface._base:_base.py:445 adding SomeClass.a = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:445 adding SomeClass.b = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:445 adding SomeClass.c = <class 'spyne.test.protocol._test_dictdoc.SomeInnerClass'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.SomeInnerClass'>" for '{spyne.test.protocol}SomeInnerClass'
> DEBUG spyne.interface._base:_base.py:445 adding SomeInnerClass.d = <class 'spyne.model.primitive.datetime.Date'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.datetime.Date'>" for '{http://www.w3.org/2001/XMLSchema}date'
> DEBUG spyne.interface._base:_base.py:445 adding SomeInnerClass.dt = <class 'spyne.model.primitive.datetime.DateTime'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.datetime.DateTime'>" for '{http://www.w3.org/2001/XMLSchema}dateTime'
> DEBUG spyne.interface._base:_base.py:458 importing 'spyne.test.protocol' to 'tns' for some_call.p(<class 'spyne.test.protocol._test_dictdoc.SomeClass'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.test.protocol._test_dictdoc.SomeClass'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4568f10>).
> _____________________ TestMessagePackDocument.test_point2d _____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_point2d>
>
> def test_point2d(self):
> d = 'POINT(1 2)'
>
> class SomeService(Service):
> @srpc(Point, _returns=Point)
> def some_call(p):
> print(p)
> print(type(p))
> assert isinstance(p, six.string_types)
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:764:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5007a90>
> ctx = MethodContext(
> call_start=1603801846.0128658,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5007e50>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.spatial.Point'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.spatial.Point'>" for '{http://www.w3.org/2001/XMLSchema}Point'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.Point'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd42a4130>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.spatial.Point'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.spatial.Point'>" for '{http://www.w3.org/2001/XMLSchema}Point'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.Point'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd42a4130>).
> _____________________ TestMessagePackDocument.test_point3d _____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_point3d>
>
> def test_point3d(self):
> d = 'POINT(1 2 3)'
>
> class SomeService(Service):
> @srpc(Point, _returns=Point)
> def some_call(p):
> print(p)
> print(type(p))
> assert isinstance(p, six.string_types)
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:783:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce680c10>
> ctx = MethodContext(
> call_start=1603801846.051049,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce680430>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.spatial.Point'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.spatial.Point'>" for '{http://www.w3.org/2001/XMLSchema}Point'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.Point'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce680970>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.spatial.Point'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.spatial.Point'>" for '{http://www.w3.org/2001/XMLSchema}Point'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.Point'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce680970>).
> ____________________ TestMessagePackDocument.test_polygon2d ____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_polygon2d>
>
> def test_polygon2d(self):
> d = 'POLYGON((1 1, 1 2, 2 2, 2 1, 1 1))'
>
> class SomeService(Service):
> @srpc(Polygon(2), _returns=Polygon(2))
> def some_call(p):
> print(p)
> print(type(p))
> assert isinstance(p, six.string_types)
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:840:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4460c40>
> ctx = MethodContext(
> call_start=1603801846.1305408,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4460d60>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: Polygon: setting dim=2
> DEBUG:spyne.model._base: Polygon: setting pattern='POLYGON\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*'
> DEBUG:spyne.model._base: Polygon: setting _explicit_type_name=True because we have 'type_name'
> DEBUG:spyne.model._base:Type name for <class 'spyne.model.primitive.spatial.Polygon'> was overridden as 'polygon2d'
> DEBUG:spyne.model._base: Polygon: setting dim=2
> DEBUG:spyne.model._base: Polygon: setting pattern='POLYGON\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*'
> DEBUG:spyne.model._base: Polygon: setting _explicit_type_name=True because we have 'type_name'
> DEBUG:spyne.model._base:Type name for <class 'spyne.model.primitive.spatial.Polygon'> was overridden as 'polygon2d'
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.spatial.Polygon'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.spatial.Polygon'>" for '{http://spyne.io/schema}polygon2d'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.spatial.Polygon'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.Polygon'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4460520>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 Polygon: setting dim=2
> DEBUG spyne.model._base:_base.py:648 Polygon: setting pattern='POLYGON\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*'
> DEBUG spyne.model._base:_base.py:648 Polygon: setting _explicit_type_name=True because we have 'type_name'
> DEBUG spyne.model._base:_base.py:881 Type name for <class 'spyne.model.primitive.spatial.Polygon'> was overridden as 'polygon2d'
> DEBUG spyne.model._base:_base.py:648 Polygon: setting dim=2
> DEBUG spyne.model._base:_base.py:648 Polygon: setting pattern='POLYGON\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*'
> DEBUG spyne.model._base:_base.py:648 Polygon: setting _explicit_type_name=True because we have 'type_name'
> DEBUG spyne.model._base:_base.py:881 Type name for <class 'spyne.model.primitive.spatial.Polygon'> was overridden as 'polygon2d'
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.spatial.Polygon'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.spatial.Polygon'>" for '{http://spyne.io/schema}polygon2d'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:458 importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.spatial.Polygon'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.Polygon'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4460520>).
> ____________________ TestMessagePackDocument.test_polygon3d ____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_polygon3d>
>
> def test_polygon3d(self):
> d = 'POLYGON((1 1 0, 1 2 0, 2 2 0, 2 1 0, 1 1 0))'
>
> class SomeService(Service):
> @srpc(Polygon(3), _returns=Polygon(3))
> def some_call(p):
> print(p)
> print(type(p))
> assert isinstance(p, six.string_types)
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:859:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4415490>
> ctx = MethodContext(
> call_start=1603801846.1695487,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5007790>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: Polygon: setting dim=3
> DEBUG:spyne.model._base: Polygon: setting pattern='POLYGON\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*'
> DEBUG:spyne.model._base: Polygon: setting _explicit_type_name=True because we have 'type_name'
> DEBUG:spyne.model._base:Type name for <class 'spyne.model.primitive.spatial.Polygon'> was overridden as 'polygon3d'
> DEBUG:spyne.model._base: Polygon: setting dim=3
> DEBUG:spyne.model._base: Polygon: setting pattern='POLYGON\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*'
> DEBUG:spyne.model._base: Polygon: setting _explicit_type_name=True because we have 'type_name'
> DEBUG:spyne.model._base:Type name for <class 'spyne.model.primitive.spatial.Polygon'> was overridden as 'polygon3d'
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.spatial.Polygon'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.spatial.Polygon'>" for '{http://spyne.io/schema}polygon3d'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.spatial.Polygon'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.Polygon'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd5138f10>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 Polygon: setting dim=3
> DEBUG spyne.model._base:_base.py:648 Polygon: setting pattern='POLYGON\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*'
> DEBUG spyne.model._base:_base.py:648 Polygon: setting _explicit_type_name=True because we have 'type_name'
> DEBUG spyne.model._base:_base.py:881 Type name for <class 'spyne.model.primitive.spatial.Polygon'> was overridden as 'polygon3d'
> DEBUG spyne.model._base:_base.py:648 Polygon: setting dim=3
> DEBUG spyne.model._base:_base.py:648 Polygon: setting pattern='POLYGON\\s*\\(\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*\\s*(,\\s*\\s*\\(-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?\\s*(,\\s*-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)? +-?[0-9]+\\.?[0-9]*(e-?[0-9]+)?)*\\)\\s*)*\\)\\s*'
> DEBUG spyne.model._base:_base.py:648 Polygon: setting _explicit_type_name=True because we have 'type_name'
> DEBUG spyne.model._base:_base.py:881 Type name for <class 'spyne.model.primitive.spatial.Polygon'> was overridden as 'polygon3d'
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.spatial.Polygon'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.spatial.Polygon'>" for '{http://spyne.io/schema}polygon3d'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:458 importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.spatial.Polygon'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.spatial.Polygon'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd5138f10>).
> ___________ TestMessagePackDocument.test_polymorphic_deserialization ___________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_polymorphic_deserialization>
>
> def test_polymorphic_deserialization(self):
> class P(ComplexModel):
> sig = Unicode
>
> class C(P):
> foo = Unicode
>
> class D(P):
> bar = Integer
>
> class SomeService(Service):
> @rpc(P, _returns=Unicode)
> def typeof(ctx, p):
> return type(p).__name__
>
> > ctx = _dry_me([SomeService],
> {"typeof": [{'C':{'sig':'a', 'foo': 'f'}}]},
> polymorphic=True)
>
> spyne/test/protocol/_test_dictdoc.py:1309:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4460490>
> ctx = MethodContext(
> call_start=1603801846.2085524,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4282cd0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for P from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for C from meta: (<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.P'>,)
> DEBUG:spyne.model.complex:Registering <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.P'> as base of 'C'
> DEBUG:spyne.model.complex:Got bases for D from meta: (<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.P'>,)
> DEBUG:spyne.model.complex:Registering <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.P'> as base of 'D'
> DEBUG:spyne.model.complex:Got bases for typeof from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for typeofResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'typeof'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.typeof'>" for '{tns}typeof'
> DEBUG:spyne.interface._base: adding typeof.p = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.P'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.P'>" for '{spyne.test.protocol}P'
> DEBUG:spyne.interface._base: adding P.sig = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding subclasses of 'spyne.test.protocol.P'...
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.C'>" for '{spyne.test.protocol}C'
> DEBUG:spyne.interface._base: adding C.foo = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.D'>" for '{spyne.test.protocol}D'
> DEBUG:spyne.interface._base: adding D.bar = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: importing 'spyne.test.protocol' to 'tns' for typeof.p(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.P'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.typeofResponse'>" for '{tns}typeofResponse'
> DEBUG:spyne.interface._base: adding typeofResponse.typeofResult = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.typeof to match '{tns}typeof' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd42827c0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for P from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for C from meta: (<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.P'>,)
> DEBUG spyne.model.complex:complex.py:318 Registering <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.P'> as base of 'C'
> DEBUG spyne.model.complex:complex.py:287 Got bases for D from meta: (<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.P'>,)
> DEBUG spyne.model.complex:complex.py:318 Registering <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.P'> as base of 'D'
> DEBUG spyne.model.complex:complex.py:287 Got bases for typeof from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for typeofResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'typeof'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.typeof'>" for '{tns}typeof'
> DEBUG spyne.interface._base:_base.py:445 adding typeof.p = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.P'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.P'>" for '{spyne.test.protocol}P'
> DEBUG spyne.interface._base:_base.py:445 adding P.sig = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:491 adding subclasses of 'spyne.test.protocol.P'...
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.C'>" for '{spyne.test.protocol}C'
> DEBUG spyne.interface._base:_base.py:445 adding C.foo = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.D'>" for '{spyne.test.protocol}D'
> DEBUG spyne.interface._base:_base.py:445 adding D.bar = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:458 importing 'spyne.test.protocol' to 'tns' for typeof.p(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_polymorphic_deserialization.<locals>.P'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.typeofResponse'>" for '{tns}typeofResponse'
> DEBUG spyne.interface._base:_base.py:445 adding typeofResponse.typeofResult = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.typeof to match '{tns}typeof' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd42827c0>).
> _____________ TestMessagePackDocument.test_prune_none_and_optional _____________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_prune_none_and_optional>
>
> def test_prune_none_and_optional(self):
> class SomeObject(ComplexModel):
> i = Integer
> s = String(min_occurs=1)
>
> class SomeService(Service):
> @srpc(_returns=SomeObject)
> def some_call():
> return SomeObject()
>
> > ctx = _dry_me([SomeService], {"some_call":[]})
>
> spyne/test/protocol/_test_dictdoc.py:378:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd40d0d90>
> ctx = MethodContext(
> call_start=1603801846.2478924,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd50b4c70>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: string: setting min_occurs=1
> DEBUG:spyne.model.complex:Got bases for SomeObject from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_prune_none_and_optional.<locals>.SomeObject'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_prune_none_and_optional.<locals>.SomeObject'>" for '{spyne.test.protocol}SomeObject'
> DEBUG:spyne.interface._base: adding SomeObject.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: adding SomeObject.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: importing 'spyne.test.protocol' to 'tns' for some_callResponse.some_callResult(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_prune_none_and_optional.<locals>.SomeObject'>)
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce72a6a0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 string: setting min_occurs=1
> DEBUG spyne.model.complex:complex.py:287 Got bases for SomeObject from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_prune_none_and_optional.<locals>.SomeObject'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_prune_none_and_optional.<locals>.SomeObject'>" for '{spyne.test.protocol}SomeObject'
> DEBUG spyne.interface._base:_base.py:445 adding SomeObject.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:445 adding SomeObject.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:458 importing 'spyne.test.protocol' to 'tns' for some_callResponse.some_callResult(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_prune_none_and_optional.<locals>.SomeObject'>)
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce72a6a0>).
> ______________________ TestMessagePackDocument.test_time _______________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_time>
>
> def test_time(self):
> d = time(10, 20, 30).isoformat()
>
> class SomeService(Service):
> @srpc(Time, _returns=Time)
> def some_call(p):
> print(p)
> print(type(p))
> assert type(p) == time
> assert p.isoformat() == d
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:617:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4282310>
> ctx = MethodContext(
> call_start=1603801846.2871144,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd45ca940>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.datetime.Time'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.datetime.Time'>" for '{http://www.w3.org/2001/XMLSchema}time'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.datetime.Time'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd45ca190>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.datetime.Time'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.datetime.Time'>" for '{http://www.w3.org/2001/XMLSchema}time'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.datetime.Time'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd45ca190>).
> _____________________ TestMessagePackDocument.test_unicode _____________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_unicode>
>
> def test_unicode(self):
> d = u'some string'
>
> class SomeService(Service):
> @srpc(Unicode, _returns=Unicode)
> def some_call(p):
> print(p)
> print(type(p))
> assert type(p) == six.text_type
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:457:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5144dc0>
> ctx = MethodContext(
> call_start=1603801846.368431,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5144760>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce6808b0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce6808b0>).
> ______________________ TestMessagePackDocument.test_uuid _______________________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_uuid>
>
> def test_uuid(self):
> d = '7d2a6330-eb64-4900-8a10-38ebef415e9d'
>
> class SomeService(Service):
> @srpc(Uuid, _returns=Uuid)
> def some_call(p):
> print(p)
> print(type(p))
> assert type(p) == uuid.UUID
> return p
>
> > ctx = _dry_me([SomeService], {"some_call":[d]})
>
> spyne/test/protocol/_test_dictdoc.py:745:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5286190>
> ctx = MethodContext(
> call_start=1603801846.4064002,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd52863a0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.string.Uuid'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Uuid'>" for '{http://spyne.io/schema}uuid'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.string.Uuid'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.primitive.string.Uuid'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd52869a0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.string.Uuid'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Uuid'>" for '{http://spyne.io/schema}uuid'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:458 importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.string.Uuid'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.primitive.string.Uuid'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd52869a0>).
> _____________ TestMessagePackDocument.test_validation_freq_parent ______________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_validation_freq_parent>
>
> def test_validation_freq_parent(self):
> class C(ComplexModel):
> i = Integer(min_occurs=1)
> s = Unicode
>
> class SomeService(Service):
> @srpc(C)
> def some_call(p):
> pass
>
> try:
> # must raise validation error for missing i
> _dry_me([SomeService], {"some_call": {'p': {'C': {'s': 'a'}}}},
> validator='soft')
> except ValidationError as e:
> logger.exception(e)
> pass
> except BaseException as e:
> logger.exception(e)
> pass
> else:
> raise Exception("must raise ValidationError")
>
> # must not raise anything for missing p because C has min_occurs=0
> > _dry_me([SomeService], {"some_call": {}}, validator='soft')
>
> spyne/test/protocol/_test_dictdoc.py:1242:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce729910>
> ctx = MethodContext(
> call_start=1603801846.4472187,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce7294c0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: integer: setting min_occurs=1
> DEBUG:spyne.model._base: integer: setting max_str_len=Decimal('Infinity')
> DEBUG:spyne.model.complex:Got bases for C from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_validation_freq_parent.<locals>.C'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_validation_freq_parent.<locals>.C'>" for '{spyne.test.protocol}C'
> DEBUG:spyne.interface._base: adding C.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: adding C.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: importing 'spyne.test.protocol' to 'tns' for some_call.p(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_validation_freq_parent.<locals>.C'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce7e18b0>).
> ERROR:spyne.test.protocol._test_dictdoc:'str' object has no attribute 'decode'
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol/_test_dictdoc.py", line 1230, in test_validation_freq_parent
> _dry_me([SomeService], {"some_call": {'p': {'C': {'s': 'a'}}}},
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol/_test_dictdoc.py", line 145, in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server/_base.py", line 67, in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/dictdoc/_base.py", line 103, in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/msgpack.py", line 152, in gen_method_request_string
> mrs = mrs.decode('utf8')
> AttributeError: 'str' object has no attribute 'decode'
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_validation_freq_parent.<locals>.C'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_validation_freq_parent.<locals>.C'>" for '{spyne.test.protocol}C'
> DEBUG:spyne.interface._base: adding C.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: adding C.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: importing 'spyne.test.protocol' to 'tns' for some_call.p(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_validation_freq_parent.<locals>.C'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 integer: setting min_occurs=1
> DEBUG spyne.model._base:_base.py:648 integer: setting max_str_len=Decimal('Infinity')
> DEBUG spyne.model.complex:complex.py:287 Got bases for C from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_validation_freq_parent.<locals>.C'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_validation_freq_parent.<locals>.C'>" for '{spyne.test.protocol}C'
> DEBUG spyne.interface._base:_base.py:445 adding C.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:445 adding C.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:458 importing 'spyne.test.protocol' to 'tns' for some_call.p(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_validation_freq_parent.<locals>.C'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce7e18b0>).
> ERROR spyne.test.protocol._test_dictdoc:_test_dictdoc.py:1236 'str' object has no attribute 'decode'
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol/_test_dictdoc.py", line 1230, in test_validation_freq_parent
> _dry_me([SomeService], {"some_call": {'p': {'C': {'s': 'a'}}}},
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol/_test_dictdoc.py", line 145, in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/server/_base.py", line 67, in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/dictdoc/_base.py", line 103, in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/msgpack.py", line 152, in gen_method_request_string
> mrs = mrs.decode('utf8')
> AttributeError: 'str' object has no attribute 'decode'
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_validation_freq_parent.<locals>.C'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_validation_freq_parent.<locals>.C'>" for '{spyne.test.protocol}C'
> DEBUG spyne.interface._base:_base.py:445 adding C.i = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:445 adding C.s = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:458 importing 'spyne.test.protocol' to 'tns' for some_call.p(<class 'spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test.test_validation_freq_parent.<locals>.C'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> ______________ TestMessagePackDocument.test_validation_frequency _______________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_validation_frequency>
>
> def test_validation_frequency(self):
> class SomeService(Service):
> @srpc(ByteArray(min_occurs=1), _returns=ByteArray)
> def some_call(p):
> pass
>
> try:
> > _dry_me([SomeService], {"some_call": []}, validator='soft')
>
> spyne/test/protocol/_test_dictdoc.py:1108:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd43292b0>
> ctx = MethodContext(
> call_start=1603801846.485946,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd4329940>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: base64Binary: setting min_occurs=1
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.binary.ByteArray'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.binary.ByteArray'>" for '{http://www.w3.org/2001/XMLSchema}base64Binary'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.binary.ByteArray'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4329820>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 base64Binary: setting min_occurs=1
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.binary.ByteArray'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.binary.ByteArray'>" for '{http://www.w3.org/2001/XMLSchema}base64Binary'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.binary.ByteArray'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd4329820>).
> ____________ TestMessagePackDocument.test_validation_integer_range _____________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_validation_integer_range>
>
> def test_validation_integer_range(self):
> class SomeService(Service):
> @srpc(Integer(ge=0, le=5))
> def some_call(p):
> pass
>
> try:
> > _dry_me([SomeService], {"some_call": [10]},
> validator='soft')
>
> spyne/test/protocol/_test_dictdoc.py:1152:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd43b4160>
> ctx = MethodContext(
> call_start=1603801846.523647,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd43b4b50>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: integer: setting ge=0
> DEBUG:spyne.model._base: integer: setting le=5
> DEBUG:spyne.model._base: integer: setting max_str_len=Decimal('Infinity')
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.number.Integer'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{tns}some_call_pType'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd50b4880>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 integer: setting ge=0
> DEBUG spyne.model._base:_base.py:648 integer: setting le=5
> DEBUG spyne.model._base:_base.py:648 integer: setting max_str_len=Decimal('Infinity')
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.number.Integer'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{tns}some_call_pType'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.Integer'>" for '{http://www.w3.org/2001/XMLSchema}integer'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd50b4880>).
> _____________ TestMessagePackDocument.test_validation_integer_type _____________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_validation_integer_type>
>
> def test_validation_integer_type(self):
> class SomeService(Service):
> @srpc(Integer8)
> def some_call(p):
> pass
>
> try:
> > _dry_me([SomeService], {"some_call": [-129]},
> validator='soft')
>
> spyne/test/protocol/_test_dictdoc.py:1167:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5175e50>
> ctx = MethodContext(
> call_start=1603801846.602619,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd5175e20>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.number.TBoundedInteger.<locals>._BoundedInteger'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.TBoundedInteger.<locals>._BoundedInteger'>" for '{http://www.w3.org/2001/XMLSchema}byte'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd5175100>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.number.TBoundedInteger.<locals>._BoundedInteger'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.TBoundedInteger.<locals>._BoundedInteger'>" for '{http://www.w3.org/2001/XMLSchema}byte'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd5175100>).
> ____________ TestMessagePackDocument.test_validation_integer_type_2 ____________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_validation_integer_type_2>
>
> def test_validation_integer_type_2(self):
> class SomeService(Service):
> @srpc(Integer8)
> def some_call(p):
> pass
>
> try:
> > _dry_me([SomeService], {"some_call": [1.2]}, validator='soft')
>
> spyne/test/protocol/_test_dictdoc.py:1182:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd420fa00>
> ctx = MethodContext(
> call_start=1603801846.641106,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Application...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd420f3a0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.number.TBoundedInteger.<locals>._BoundedInteger'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number.TBoundedInteger.<locals>._BoundedInteger'>" for '{http://www.w3.org/2001/XMLSchema}byte'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd40be5e0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.number.TBoundedInteger.<locals>._BoundedInteger'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.number.TBoundedInteger.<locals>._BoundedInteger'>" for '{http://www.w3.org/2001/XMLSchema}byte'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd40be5e0>).
> _______________ TestMessagePackDocument.test_validation_nullable _______________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_validation_nullable>
>
> def test_validation_nullable(self):
> class SomeService(Service):
> @srpc(ByteArray(nullable=False), _returns=ByteArray)
> def some_call(p):
> pass
>
> try:
> > _dry_me([SomeService], {"some_call": [None]},
> validator='soft')
>
> spyne/test/protocol/_test_dictdoc.py:1121:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd45e91f0>
> ctx = MethodContext(
> call_start=1603801846.6811562,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd45e9b80>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model._base: base64Binary: setting nullable=False
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.binary.ByteArray'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.binary.ByteArray'>" for '{http://www.w3.org/2001/XMLSchema}base64Binary'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base: adding some_callResponse.some_callResult = <class 'spyne.model.binary.ByteArray'>
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd45e92b0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model._base:_base.py:648 base64Binary: setting nullable=False
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.binary.ByteArray'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.binary.ByteArray'>" for '{http://www.w3.org/2001/XMLSchema}base64Binary'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:445 adding some_callResponse.some_callResult = <class 'spyne.model.binary.ByteArray'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd45e92b0>).
> ____________ TestMessagePackDocument.test_validation_string_pattern ____________
>
> self = <spyne.test.protocol._test_dictdoc.TDictDocumentTest.<locals>.Test testMethod=test_validation_string_pattern>
>
> def test_validation_string_pattern(self):
> class SomeService(Service):
> @srpc(Uuid)
> def some_call(p):
> pass
>
> try:
> > _dry_me([SomeService], {"some_call": ["duduk"]},
> validator='soft')
>
> spyne/test/protocol/_test_dictdoc.py:1136:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/test/protocol/_test_dictdoc.py:145: in _dry_me
> ctx, = server.generate_contexts(initial_ctx, in_string_charset='utf8')
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd42b13a0>
> ctx = MethodContext(
> call_start=1603801846.7201498,
> call_end=None,
> is_closed=False,
> app=<spyne.application.Applicatio...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bd42b1df0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'some_call'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG:spyne.interface._base: adding some_call.p = <class 'spyne.model.primitive.string.Uuid'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Uuid'>" for '{http://spyne.io/schema}uuid'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.string.Uuid'>)
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG:spyne.interface._base:populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd42b10a0>).
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_call from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for some_callResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.protocol._test_dictdoc.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'some_call'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_call'>" for '{tns}some_call'
> DEBUG spyne.interface._base:_base.py:445 adding some_call.p = <class 'spyne.model.primitive.string.Uuid'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Uuid'>" for '{http://spyne.io/schema}uuid'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:458 importing 'http://spyne.io/schema' to 'tns' for some_call.p(<class 'spyne.model.primitive.string.Uuid'>)
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.some_callResponse'>" for '{tns}some_callResponse'
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.protocol._test_dictdoc.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.some_call to match '{tns}some_call' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bd42b10a0>).
> _____________________ TestMessagePackServer.test_roundtrip _____________________
>
> self = <spyne.test.transport.test_msgpack.TestMessagePackServer testMethod=test_roundtrip>
>
> def test_roundtrip(self):
> v = "yaaay!"
> class SomeService(Service):
> @rpc(Unicode, _returns=Unicode)
> def yay(ctx, u):
> return u
>
> app = Application([SomeService], 'tns',
> in_protocol=MessagePackDocument(),
> out_protocol=MessagePackDocument())
>
> prot = self.gen_prot(app)
> request = msgpack.packb({'yay': [v]})
> > prot.dataReceived(msgpack.packb([1, request]))
>
> spyne/test/transport/test_msgpack.py:55:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/server/twisted/msgpack.py:203: in dataReceived
> self.process_incoming_message(msg)
> spyne/server/twisted/msgpack.py:238: in process_incoming_message
> p_ctx, others = self.spyne_tpt.produce_contexts(msg)
> spyne/server/msgpack.py:160: in produce_contexts
> contexts = self.generate_contexts(initial_ctx)
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce200fa0>
> ctx = MessagePackMethodContext(
> oob_ctx=None,
> call_start=1603801847.6568406,
> call_end=None,
> is_closed=False,
> app=<s...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bce1d80a0>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for yay from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for yayResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.transport.test_msgpack.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'yay'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.yay'>" for '{tns}yay'
> DEBUG:spyne.interface._base: adding yay.u = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.yayResponse'>" for '{tns}yayResponse'
> DEBUG:spyne.interface._base: adding yayResponse.yayResult = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base:populating 'spyne.test.transport.test_msgpack.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.yay to match '{tns}yay' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce1d8370>).
> DEBUG:spyne.server.twisted.msgpack:7f7bcdfe2250 connection made
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for yay from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for yayResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.transport.test_msgpack.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'yay'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.yay'>" for '{tns}yay'
> DEBUG spyne.interface._base:_base.py:445 adding yay.u = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.yayResponse'>" for '{tns}yayResponse'
> DEBUG spyne.interface._base:_base.py:445 adding yayResponse.yayResult = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.transport.test_msgpack.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.yay to match '{tns}yay' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bce1d8370>).
> DEBUG spyne.server.twisted.msgpack:msgpack.py:158 7f7bcdfe2250 connection made
> ________________ TestMessagePackServer.test_roundtrip_deferred _________________
>
> self = <spyne.test.transport.test_msgpack.TestMessagePackServer testMethod=test_roundtrip_deferred>
>
> def test_roundtrip_deferred(self):
> from twisted.internet import reactor
> from twisted.internet.task import deferLater
>
> v = "yaaay!"
> p_ctx = []
> class SomeService(Service):
> @rpc(Unicode, _returns=Unicode)
> def yay(ctx, u):
> def _cb():
> return u
> p_ctx.append(ctx)
> return deferLater(reactor, 0.1, _cb)
>
> app = Application([SomeService], 'tns',
> in_protocol=MessagePackDocument(),
> out_protocol=MessagePackDocument())
>
> prot = self.gen_prot(app)
> request = msgpack.packb({'yay': [v]})
> def _ccb(_):
> val = prot.transport.value()
> print(repr(val))
> val = msgpack.unpackb(val)
> print(repr(val))
>
> self.assertEqual(val, [0, msgpack.packb(v)])
>
> > prot.dataReceived(msgpack.packb([1, request]))
>
> spyne/test/transport/test_msgpack.py:91:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> spyne/server/twisted/msgpack.py:203: in dataReceived
> self.process_incoming_message(msg)
> spyne/server/twisted/msgpack.py:238: in process_incoming_message
> p_ctx, others = self.spyne_tpt.produce_contexts(msg)
> spyne/server/msgpack.py:160: in produce_contexts
> contexts = self.generate_contexts(initial_ctx)
> spyne/server/_base.py:67: in generate_contexts
> self.app.in_protocol.decompose_incoming_envelope(ctx,
> spyne/protocol/dictdoc/_base.py:103: in decompose_incoming_envelope
> ctx.method_request_string = self.gen_method_request_string(ctx)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bcdf3d940>
> ctx = MessagePackMethodContext(
> oob_ctx=None,
> call_start=1603801847.689902,
> call_end=None,
> is_closed=False,
> app=<sp...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bcdf3d670>,
> pusher_stack=[],
> frozen=True,
> ))
>
> def gen_method_request_string(self, ctx):
> """Uses information in context object to return a method_request_string.
>
> Returns a string in the form of "{namespaces}method name".
> """
>
> mrs, = ctx.in_body_doc.keys()
> if not six.PY2:
> > mrs = mrs.decode('utf8')
> E AttributeError: 'str' object has no attribute 'decode'
>
> spyne/protocol/msgpack.py:152: AttributeError
> ----------------------------- Captured stderr call -----------------------------
> DEBUG:spyne.model.complex:Got bases for yay from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG:spyne.model.complex:Got bases for yayResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO:spyne.application:Initializing application {tns}Application...
> DEBUG:spyne.interface._base:populating spyne.test.transport.test_msgpack.SomeService types...
> DEBUG:spyne.interface._base: enumerating classes for method 'yay'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.yay'>" for '{tns}yay'
> DEBUG:spyne.interface._base: adding yay.u = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.yayResponse'>" for '{tns}yayResponse'
> DEBUG:spyne.interface._base: adding yayResponse.yayResult = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG:spyne.interface._base:populating 'spyne.test.transport.test_msgpack.SomeService' routes...
> DEBUG:spyne.interface._base: adding method SomeService.yay to match '{tns}yay' tag.
> DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING:spyne.util.appreg:Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bcdf3d4c0>).
> DEBUG:spyne.server.twisted.msgpack:7f7bcdf6f580 connection made
> ------------------------------ Captured log call -------------------------------
> DEBUG spyne.model.complex:complex.py:287 Got bases for yay from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> DEBUG spyne.model.complex:complex.py:287 Got bases for yayResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
> INFO spyne.application:application.py:110 Initializing application {tns}Application...
> DEBUG spyne.interface._base:_base.py:296 populating spyne.test.transport.test_msgpack.SomeService types...
> DEBUG spyne.interface._base:_base.py:316 enumerating classes for method 'yay'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.yay'>" for '{tns}yay'
> DEBUG spyne.interface._base:_base.py:445 adding yay.u = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
> DEBUG spyne.interface._base:_base.py:406 adding class "<class 'spyne.model.complex.yayResponse'>" for '{tns}yayResponse'
> DEBUG spyne.interface._base:_base.py:445 adding yayResponse.yayResult = <class 'spyne.model.primitive.string.Unicode'>
> DEBUG spyne.interface._base:_base.py:328 populating 'spyne.test.transport.test_msgpack.SomeService' routes...
> DEBUG spyne.interface._base:_base.py:253 adding method SomeService.yay to match '{tns}yay' tag.
> DEBUG spyne.interface._base:_base.py:360 From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
> WARNING spyne.util.appreg:appreg.py:69 Overwriting application ('tns', 'Application')(<spyne.application.Application object at 0x7f7bcdf3d4c0>).
> DEBUG spyne.server.twisted.msgpack:msgpack.py:158 7f7bcdf6f580 connection made
> =============================== warnings summary ===============================
> spyne/model/table.py:65
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/model/table.py:65: UserWarning: 'spyne.model.table' module is deprecated. Please switch to spyne.model.complex.TTableModel.
> Here's where the import comes from:
> warnings.warn("%r module is deprecated. Please switch to "
>
> spyne/protocol/json.py:20
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/json.py:20: DeprecationWarning: invalid escape sequence \s
> """The ``spyne.protocol.json`` package contains the Json-related protocols.
>
> .pybuild/cpython3_3.9/build/spyne/test/test_sqlalchemy.py::TestSqlAlchemySchema::test_base_append_complex
> /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:1108: SAWarning: Reassigning polymorphic association for identity 1 from <Mapper at 0x7f7bd45d4070; B> to <Mapper at 0x7f7bd45d4cd0; C>: Check for duplicate use of 1 as value for polymorphic_identity.
> util.warn(
>
> .pybuild/cpython3_3.9/build/spyne/test/test_sqlalchemy.py::TestSqlAlchemySchema::test_base_append_simple
> /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:1108: SAWarning: Reassigning polymorphic association for identity 1 from <Mapper at 0x7f7bd526beb0; B> to <Mapper at 0x7f7bd4f89820; C>: Check for duplicate use of 1 as value for polymorphic_identity.
> util.warn(
>
> .pybuild/cpython3_3.9/build/spyne/test/test_sqlalchemy.py::TestSqlAlchemySchema::test_inheritance_polymorphic_with_non_nullables_in_subclasses
> /usr/lib/python3/dist-packages/sqlalchemy/sql/sqltypes.py:661: SAWarning: Dialect sqlite+pysqlite does *not* support Decimal objects natively, and SQLAlchemy must convert from floating point - rounding errors and other issues may occur. Please consider storing Decimal numbers as strings or integers on this platform for lossless storage.
> util.warn(
>
> .pybuild/cpython3_3.9/build/spyne/test/test_sqlalchemy_deprecated.py::TestSqlAlchemy::test_relationship_array
> /usr/lib/python3/dist-packages/sqlalchemy/ext/declarative/clsregistry.py:125: SAWarning: This declarative base already contains a class with the same class name and module name as spyne.test.test_sqlalchemy_deprecated.Permission, and will be replaced in the string-lookup table.
> util.warn(
>
> .pybuild/cpython3_3.9/build/spyne/test/test_sqlalchemy_deprecated.py::TestSqlAlchemy::test_relationship_array
> /usr/lib/python3/dist-packages/sqlalchemy/ext/declarative/clsregistry.py:125: SAWarning: This declarative base already contains a class with the same class name and module name as spyne.test.test_sqlalchemy_deprecated.User, and will be replaced in the string-lookup table.
> util.warn(
>
> .pybuild/cpython3_3.9/build/spyne/test/test_sqlalchemy_deprecated.py::TestSqlAlchemy::test_rpc
> /usr/lib/python3/dist-packages/sqlalchemy/ext/declarative/clsregistry.py:125: SAWarning: This declarative base already contains a class with the same class name and module name as spyne.test.test_sqlalchemy_deprecated.KeyValuePair, and will be replaced in the string-lookup table.
> util.warn(
>
> .pybuild/cpython3_3.9/build/spyne/test/multipython/model/test_complex.py::TestComplexModel::test_customize
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/multipython/model/test_complex.py:143: DeprecationWarning: Please use assertNotEqual instead.
> self.assertNotEquals(Base.Attributes.prop1, Base2.Attributes.prop1)
>
> .pybuild/cpython3_3.9/build/spyne/test/multipython/model/test_complex.py::TestComplexModel::test_customize
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/multipython/model/test_complex.py:159: DeprecationWarning: Please use assertNotEqual instead.
> self.assertNotEquals(Derived.Attributes.prop3, Derived2.Attributes.prop3)
>
> .pybuild/cpython3_3.9/build/spyne/test/multipython/model/test_complex.py::TestComplexModel::test_customize
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/multipython/model/test_complex.py:167: DeprecationWarning: Please use assertNotEqual instead.
> self.assertNotEquals(Derived2.Attributes.prop1, Base.Attributes.prop1)
>
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_json.py::TestDictDocument::test_exclude
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_exclude
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol/_test_dictdoc.py:1290: DeprecationWarning: Please use assertEqual instead.
> self.assertEquals(ctx.out_document[0], convert_dict(
>
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_json.py::TestDictDocument::test_not_wrapped
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_not_wrapped
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol/_test_dictdoc.py:1216: DeprecationWarning: Please use assertEqual instead.
> self.assertEquals(ctx.out_document[0], d)
>
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_soap12.py::TestSoap12::test_fault_generation
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/soap/soap12.py:109: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
> if child_subcode:
>
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_soap12.py::TestSoap12::test_fault_generation
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/protocol/soap/soap12.py:59: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
> if subcode:
>
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_soap12.py::TestSoap12::test_fault_generation
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/util/etreeconv.py:51: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
> elif not isinstance(val, collections.Sized) or isinstance(val, six.string_types):
>
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_any_dict
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_any_html
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_any_uri
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_any_xml
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_boolean
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_bytearray
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_complex
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_complex_with_only_primitive_fields
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_date
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_datetime
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_datetime_tz
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_decimal
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_double
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_duration
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_file_data
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_file_value
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_generator
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_image_uri
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_inheritance
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_integer
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_integer_way_big
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_integer_way_small
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_line2d
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_line3d
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_multiline2d
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_multiline3d
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_multiple_dict
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_multiple_dict_array
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_multiple_dict_complex_array
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_multiple_list
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_multipoint2d
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_multipoint3d
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_multipolygon2d
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_multipolygon3d
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_point2d
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_point3d
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_polygon2d
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_polygon3d
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_polymorphic_deserialization
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_prune_none_and_optional
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_time
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_unicode
> .pybuild/cpython3_3.9/build/spyne/test/protocol/test_yaml.py::TestYamlDocument::test_uuid
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/protocol/_test_dictdoc.py:172: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
> return _unbyte(serializer.loads(o, **loads_kwargs))
>
> .pybuild/cpython3_3.9/build/spyne/test/transport/test_msgpack.py::TestMessagePackServer::test_roundtrip
> .pybuild/cpython3_3.9/build/spyne/test/transport/test_msgpack.py::TestMessagePackServer::test_roundtrip_deferred
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/spyne/test/transport/test_msgpack.py:32: DeprecationWarning: twisted.test.proto_helpers.StringTransportWithDisconnection was deprecated in Twisted 19.7.0: Please use twisted.internet.testing.StringTransportWithDisconnection instead.
> from twisted.test.proto_helpers import StringTransportWithDisconnection
>
> -- Docs: https://docs.pytest.org/en/latest/warnings.html
> ============= 62 failed, 676 passed, 63 warnings in 13.45 seconds ==============
> E: pybuild pybuild:352: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build; python3.9 -m pytest --ignore=spyne/test/interop --ignore=examples
> rm -fr -- /tmp/dh-xdg-rundir-ZYdvY_ay
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.9 3.8" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2020/10/27/spyne_2.13.15-1_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
More information about the Python-modules-team
mailing list