Source: python-oauthlib
Version: 1.0.0-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds@lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Dear Maintainer,

python-oauthlib fails to build from source on unstable/amd64:

  [..]
  File
  
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/web_application.py",
  line 72, in
  
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.prepare_request_uri
  Failed example:
      client.prepare_request_uri('https://example.com',
      redirect_uri='https://a.b/callback')
  Expected:
      
'https://example.com?client_id=your_id&response_type=code&redirect_uri=https%3A%2F%2Fa.b%2Fcallback'
  Got:
      
u'https://example.com?response_type=code&client_id=your_id&redirect_uri=https%3A%2F%2Fa.b%2Fcallback'
  ----------------------------------------------------------------------
  File
  
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/web_application.py",
  line 74, in
  
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.prepare_request_uri
  Failed example:
      client.prepare_request_uri('https://example.com',
      scope=['profile', 'pictures'])
  Expected:
      
'https://example.com?client_id=your_id&response_type=code&scope=profile+pictures'
  Got:
      
u'https://example.com?response_type=code&client_id=your_id&scope=profile+pictures'
  ----------------------------------------------------------------------
  File
  
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/web_application.py",
  line 76, in
  
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.prepare_request_uri
  Failed example:
      client.prepare_request_uri('https://example.com', foo='bar')
  Expected:
      'https://example.com?client_id=your_id&response_type=code&foo=bar'
  Got:
      u'https://example.com?response_type=code&client_id=your_id&foo=bar'
  
  
  ----------------------------------------------------------------------
  Ran 11 tests in 0.430s
  
  FAILED (errors=1, failures=10)
  E: pybuild pybuild:262: test: plugin distutils failed with: exit
  code=1: cd
  
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build;
  python2.7 -m nose --with-doctest 
  dh_auto_test: pybuild --test --test-nose -i python{version} -p 2.7
  --dir . returned exit code 13
  debian/rules:8: recipe for target 'build' failed
  make: *** [build] Error 25

  [..]

The full build log is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
 dpkg-buildpackage -rfakeroot -D -us -uc -b
dpkg-buildpackage: source package python-oauthlib
dpkg-buildpackage: source version 1.0.0-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Daniele Tricoli <er...@mornie.org>
 dpkg-source --before-build python-oauthlib-1.0.0
dpkg-buildpackage: host architecture amd64
 fakeroot debian/rules clean
dh clean --with python2,python3 --buildsystem=pybuild
   dh_testdir -O--buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:170: python2.7 setup.py clean 
running clean
removing 
'/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build'
 (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
I: pybuild base:170: python3.4 setup.py clean 
running clean
removing 
'/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build'
 (and everything under it)
/usr/lib/python3.4/imp.py:32: PendingDeprecationWarning: the imp module is 
deprecated in favour of importlib; see the module's documentation for 
alternative uses
  PendingDeprecationWarning)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.4' does not exist -- can't clean it
   dh_clean -O--buildsystem=pybuild
 debian/rules build
dh build --with python2,python3 --buildsystem=pybuild
   dh_testdir -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:170: python2.7 setup.py config 
running config
I: pybuild base:170: python3.4 setup.py config 
running config
/usr/lib/python3.4/imp.py:32: PendingDeprecationWarning: the imp module is 
deprecated in favour of importlib; see the module's documentation for 
alternative uses
  PendingDeprecationWarning)
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:170: /usr/bin/python setup.py build 
running build
running build_py
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib
copying oauthlib/signals.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib
copying oauthlib/common.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib
copying oauthlib/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib
copying oauthlib/uri_validate.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2
copying oauthlib/oauth2/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1
copying oauthlib/oauth1/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749
copying oauthlib/oauth2/rfc6749/errors.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749
copying oauthlib/oauth2/rfc6749/tokens.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749
copying oauthlib/oauth2/rfc6749/request_validator.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749
copying oauthlib/oauth2/rfc6749/utils.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749
copying oauthlib/oauth2/rfc6749/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749
copying oauthlib/oauth2/rfc6749/parameters.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/endpoints
copying oauthlib/oauth2/rfc6749/endpoints/pre_configured.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/endpoints
copying oauthlib/oauth2/rfc6749/endpoints/authorization.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/endpoints
copying oauthlib/oauth2/rfc6749/endpoints/base.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/endpoints
copying oauthlib/oauth2/rfc6749/endpoints/resource.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/endpoints
copying oauthlib/oauth2/rfc6749/endpoints/token.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/endpoints
copying oauthlib/oauth2/rfc6749/endpoints/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/endpoints
copying oauthlib/oauth2/rfc6749/endpoints/revocation.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/endpoints
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/grant_types
copying oauthlib/oauth2/rfc6749/grant_types/refresh_token.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/grant_types
copying 
oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/grant_types
copying oauthlib/oauth2/rfc6749/grant_types/base.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/grant_types
copying oauthlib/oauth2/rfc6749/grant_types/authorization_code.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/grant_types
copying oauthlib/oauth2/rfc6749/grant_types/implicit.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/grant_types
copying oauthlib/oauth2/rfc6749/grant_types/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/grant_types
copying oauthlib/oauth2/rfc6749/grant_types/client_credentials.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/grant_types
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients
copying oauthlib/oauth2/rfc6749/clients/service_application.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients
copying oauthlib/oauth2/rfc6749/clients/backend_application.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients
copying oauthlib/oauth2/rfc6749/clients/web_application.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients
copying oauthlib/oauth2/rfc6749/clients/base.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients
copying oauthlib/oauth2/rfc6749/clients/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients
copying oauthlib/oauth2/rfc6749/clients/mobile_application.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients
copying oauthlib/oauth2/rfc6749/clients/legacy_application.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849
copying oauthlib/oauth1/rfc5849/errors.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849
copying oauthlib/oauth1/rfc5849/request_validator.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849
copying oauthlib/oauth1/rfc5849/utils.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849
copying oauthlib/oauth1/rfc5849/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849
copying oauthlib/oauth1/rfc5849/signature.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849
copying oauthlib/oauth1/rfc5849/parameters.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints
copying oauthlib/oauth1/rfc5849/endpoints/pre_configured.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints
copying oauthlib/oauth1/rfc5849/endpoints/signature_only.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints
copying oauthlib/oauth1/rfc5849/endpoints/authorization.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints
copying oauthlib/oauth1/rfc5849/endpoints/base.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints
copying oauthlib/oauth1/rfc5849/endpoints/resource.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints
copying oauthlib/oauth1/rfc5849/endpoints/request_token.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints
copying oauthlib/oauth1/rfc5849/endpoints/access_token.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints
copying oauthlib/oauth1/rfc5849/endpoints/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints
I: pybuild base:170: /usr/bin/python3 setup.py build 
running build
running build_py
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib
copying oauthlib/signals.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib
copying oauthlib/common.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib
copying oauthlib/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib
copying oauthlib/uri_validate.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2
copying oauthlib/oauth2/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1
copying oauthlib/oauth1/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749
copying oauthlib/oauth2/rfc6749/errors.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749
copying oauthlib/oauth2/rfc6749/tokens.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749
copying oauthlib/oauth2/rfc6749/request_validator.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749
copying oauthlib/oauth2/rfc6749/utils.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749
copying oauthlib/oauth2/rfc6749/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749
copying oauthlib/oauth2/rfc6749/parameters.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/endpoints
copying oauthlib/oauth2/rfc6749/endpoints/pre_configured.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/endpoints
copying oauthlib/oauth2/rfc6749/endpoints/authorization.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/endpoints
copying oauthlib/oauth2/rfc6749/endpoints/base.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/endpoints
copying oauthlib/oauth2/rfc6749/endpoints/resource.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/endpoints
copying oauthlib/oauth2/rfc6749/endpoints/token.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/endpoints
copying oauthlib/oauth2/rfc6749/endpoints/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/endpoints
copying oauthlib/oauth2/rfc6749/endpoints/revocation.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/endpoints
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/grant_types
copying oauthlib/oauth2/rfc6749/grant_types/refresh_token.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/grant_types
copying 
oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/grant_types
copying oauthlib/oauth2/rfc6749/grant_types/base.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/grant_types
copying oauthlib/oauth2/rfc6749/grant_types/authorization_code.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/grant_types
copying oauthlib/oauth2/rfc6749/grant_types/implicit.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/grant_types
copying oauthlib/oauth2/rfc6749/grant_types/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/grant_types
copying oauthlib/oauth2/rfc6749/grant_types/client_credentials.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/grant_types
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/clients
copying oauthlib/oauth2/rfc6749/clients/service_application.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/clients
copying oauthlib/oauth2/rfc6749/clients/backend_application.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/clients
copying oauthlib/oauth2/rfc6749/clients/web_application.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/clients
copying oauthlib/oauth2/rfc6749/clients/base.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/clients
copying oauthlib/oauth2/rfc6749/clients/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/clients
copying oauthlib/oauth2/rfc6749/clients/mobile_application.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/clients
copying oauthlib/oauth2/rfc6749/clients/legacy_application.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth2/rfc6749/clients
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1/rfc5849
copying oauthlib/oauth1/rfc5849/errors.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1/rfc5849
copying oauthlib/oauth1/rfc5849/request_validator.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1/rfc5849
copying oauthlib/oauth1/rfc5849/utils.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1/rfc5849
copying oauthlib/oauth1/rfc5849/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1/rfc5849
copying oauthlib/oauth1/rfc5849/signature.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1/rfc5849
copying oauthlib/oauth1/rfc5849/parameters.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1/rfc5849
creating 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1/rfc5849/endpoints
copying oauthlib/oauth1/rfc5849/endpoints/pre_configured.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1/rfc5849/endpoints
copying oauthlib/oauth1/rfc5849/endpoints/signature_only.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1/rfc5849/endpoints
copying oauthlib/oauth1/rfc5849/endpoints/authorization.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1/rfc5849/endpoints
copying oauthlib/oauth1/rfc5849/endpoints/base.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1/rfc5849/endpoints
copying oauthlib/oauth1/rfc5849/endpoints/resource.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1/rfc5849/endpoints
copying oauthlib/oauth1/rfc5849/endpoints/request_token.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1/rfc5849/endpoints
copying oauthlib/oauth1/rfc5849/endpoints/access_token.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1/rfc5849/endpoints
copying oauthlib/oauth1/rfc5849/endpoints/__init__.py -> 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_3.4/build/oauthlib/oauth1/rfc5849/endpoints
/usr/lib/python3.4/imp.py:32: PendingDeprecationWarning: the imp module is 
deprecated in favour of importlib; see the module's documentation for 
alternative uses
  PendingDeprecationWarning)
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:170: cd 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build;
 python2.7 -m nose --with-doctest 
FFFFFFFFFFE
======================================================================
ERROR: Failure: ValueError (line 63 of the docstring for 
oauthlib.oauth2.rfc6749.grant_types.authorization_code.AuthorizationCodeGrant.create_authorization_response
 has inconsistent leading whitespace: u'        File 
"oauthlib/oauth2/rfc6749/grant_types.py", line 591, in 
validate_authorization_request')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/plugins/manager.py", line 154, in 
generate
    for r in result:
  File "/usr/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 228, 
in loadTestsFromModule
    tests = self.finder.find(module)
  File "/usr/lib/python2.7/doctest.py", line 926, in find
    self._find(tests, obj, name, module, source_lines, globs, {})
  File "/usr/lib/python2.7/doctest.py", line 980, in _find
    globs, seen)
  File "/usr/lib/python2.7/doctest.py", line 1015, in _find
    globs, seen)
  File "/usr/lib/python2.7/doctest.py", line 968, in _find
    test = self._get_test(obj, name, module, globs, source_lines)
  File "/usr/lib/python2.7/doctest.py", line 1052, in _get_test
    filename, lineno)
  File "/usr/lib/python2.7/doctest.py", line 671, in get_doctest
    return DocTest(self.get_examples(string, name), globs,
  File "/usr/lib/python2.7/doctest.py", line 685, in get_examples
    return [x for x in self.parse(string, name)
  File "/usr/lib/python2.7/doctest.py", line 647, in parse
    self._parse_example(m, name, lineno)
  File "/usr/lib/python2.7/doctest.py", line 717, in _parse_example
    lineno + len(source_lines))
  File "/usr/lib/python2.7/doctest.py", line 803, in _check_prefix
    (lineno+i+1, name, line))
ValueError: line 63 of the docstring for 
oauthlib.oauth2.rfc6749.grant_types.authorization_code.AuthorizationCodeGrant.create_authorization_response
 has inconsistent leading whitespace: u'        File 
"oauthlib/oauth2/rfc6749/grant_types.py", line 591, in 
validate_authorization_request'

======================================================================
FAIL: Doctest: 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response
  File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/access_token.py",
 line 56, in create_access_token_response

----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/access_token.py",
 line 71, in 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response
Failed example:
    from your_validator import your_validator
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response[0]>",
 line 1, in <module>
        from your_validator import your_validator
    ImportError: No module named your_validator
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/access_token.py",
 line 73, in 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response
Failed example:
    endpoint = AccessTokenEndpoint(your_validator)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response[2]>",
 line 1, in <module>
        endpoint = AccessTokenEndpoint(your_validator)
    NameError: name 'your_validator' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/access_token.py",
 line 74, in 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response
Failed example:
    h, b, s = endpoint.create_access_token_response(
        'https://your.provider/access_token?foo=bar',
        headers={
            'Authorization': 'OAuth oauth_token=234lsdkf....'
        },
        credentials={
            'my_specific': 'argument',
        })
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response[3]>",
 line 1, in <module>
        h, b, s = endpoint.create_access_token_response(
    NameError: name 'endpoint' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/access_token.py",
 line 82, in 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response
Failed example:
    h
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response[4]>",
 line 1, in <module>
        h
    NameError: name 'h' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/access_token.py",
 line 84, in 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response
Failed example:
    b
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response[5]>",
 line 1, in <module>
        b
    NameError: name 'b' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/access_token.py",
 line 86, in 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response
Failed example:
    s
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response[6]>",
 line 1, in <module>
        s
    NameError: name 's' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/access_token.py",
 line 91, in 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response
Failed example:
    b
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response[7]>",
 line 1, in <module>
        b
    NameError: name 'b' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/access_token.py",
 line 93, in 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response
Failed example:
    s
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response[8]>",
 line 1, in <module>
        s
    NameError: name 's' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/access_token.py",
 line 98, in 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response
Failed example:
    b
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response[9]>",
 line 1, in <module>
        b
    NameError: name 'b' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/access_token.py",
 line 100, in 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response
Failed example:
    s
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.access_token.AccessTokenEndpoint.create_access_token_response[10]>",
 line 1, in <module>
        s
    NameError: name 's' is not defined


======================================================================
FAIL: Doctest: 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response
  File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/authorization.py",
 line 58, in create_authorization_response

----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/authorization.py",
 line 77, in 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response
Failed example:
    from your_validator import your_validator
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response[0]>",
 line 1, in <module>
        from your_validator import your_validator
    ImportError: No module named your_validator
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/authorization.py",
 line 79, in 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response
Failed example:
    endpoint = AuthorizationEndpoint(your_validator)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response[2]>",
 line 1, in <module>
        endpoint = AuthorizationEndpoint(your_validator)
    NameError: name 'your_validator' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/authorization.py",
 line 80, in 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response
Failed example:
    h, b, s = endpoint.create_authorization_response(
        'https://your.provider/authorize?oauth_token=...',
        credentials={
            'extra': 'argument',
        })
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response[3]>",
 line 1, in <module>
        h, b, s = endpoint.create_authorization_response(
    NameError: name 'endpoint' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/authorization.py",
 line 85, in 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response
Failed example:
    h
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response[4]>",
 line 1, in <module>
        h
    NameError: name 'h' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/authorization.py",
 line 87, in 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response
Failed example:
    b
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response[5]>",
 line 1, in <module>
        b
    NameError: name 'b' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/authorization.py",
 line 89, in 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response
Failed example:
    s
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response[6]>",
 line 1, in <module>
        s
    NameError: name 's' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/authorization.py",
 line 94, in 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response
Failed example:
    from your_validator import your_validator
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response[7]>",
 line 1, in <module>
        from your_validator import your_validator
    ImportError: No module named your_validator
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/authorization.py",
 line 96, in 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response
Failed example:
    endpoint = AuthorizationEndpoint(your_validator)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response[9]>",
 line 1, in <module>
        endpoint = AuthorizationEndpoint(your_validator)
    NameError: name 'your_validator' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/authorization.py",
 line 97, in 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response
Failed example:
    h, b, s = endpoint.create_authorization_response(
        'https://your.provider/authorize?foo=bar',
        credentials={
            'extra': 'argument',
        })
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response[10]>",
 line 1, in <module>
        h, b, s = endpoint.create_authorization_response(
    NameError: name 'endpoint' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/authorization.py",
 line 102, in 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response
Failed example:
    h
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response[11]>",
 line 1, in <module>
        h
    NameError: name 'h' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/authorization.py",
 line 104, in 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response
Failed example:
    b
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response[12]>",
 line 1, in <module>
        b
    NameError: name 'b' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/authorization.py",
 line 106, in 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response
Failed example:
    s
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.authorization.AuthorizationEndpoint.create_authorization_response[13]>",
 line 1, in <module>
        s
    NameError: name 's' is not defined


======================================================================
FAIL: Doctest: 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response
  File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/request_token.py",
 line 51, in create_request_token_response

----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/request_token.py",
 line 66, in 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response
Failed example:
    from your_validator import your_validator
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response[0]>",
 line 1, in <module>
        from your_validator import your_validator
    ImportError: No module named your_validator
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/request_token.py",
 line 68, in 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response
Failed example:
    endpoint = RequestTokenEndpoint(your_validator)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response[2]>",
 line 1, in <module>
        endpoint = RequestTokenEndpoint(your_validator)
    NameError: name 'your_validator' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/request_token.py",
 line 69, in 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response
Failed example:
    h, b, s = endpoint.create_request_token_response(
        'https://your.provider/request_token?foo=bar',
        headers={
            'Authorization': 'OAuth realm=movies user, oauth_....'
        },
        credentials={
            'my_specific': 'argument',
        })
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response[3]>",
 line 1, in <module>
        h, b, s = endpoint.create_request_token_response(
    NameError: name 'endpoint' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/request_token.py",
 line 77, in 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response
Failed example:
    h
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response[4]>",
 line 1, in <module>
        h
    NameError: name 'h' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/request_token.py",
 line 79, in 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response
Failed example:
    b
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response[5]>",
 line 1, in <module>
        b
    NameError: name 'b' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/request_token.py",
 line 81, in 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response
Failed example:
    s
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response[6]>",
 line 1, in <module>
        s
    NameError: name 's' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/request_token.py",
 line 86, in 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response
Failed example:
    b
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response[7]>",
 line 1, in <module>
        b
    NameError: name 'b' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/request_token.py",
 line 88, in 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response
Failed example:
    s
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response[8]>",
 line 1, in <module>
        s
    NameError: name 's' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/request_token.py",
 line 93, in 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response
Failed example:
    b
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response[9]>",
 line 1, in <module>
        b
    NameError: name 'b' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth1/rfc5849/endpoints/request_token.py",
 line 95, in 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response
Failed example:
    s
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth1.rfc5849.endpoints.request_token.RequestTokenEndpoint.create_request_token_response[10]>",
 line 1, in <module>
        s
    NameError: name 's' is not defined


======================================================================
FAIL: Doctest: 
oauthlib.oauth2.rfc6749.clients.backend_application.BackendApplicationClient.prepare_request_body
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for 
oauthlib.oauth2.rfc6749.clients.backend_application.BackendApplicationClient.prepare_request_body
  File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/backend_application.py",
 line 34, in prepare_request_body

----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/backend_application.py",
 line 53, in 
oauthlib.oauth2.rfc6749.clients.backend_application.BackendApplicationClient.prepare_request_body
Failed example:
    client.prepare_request_body(scope=['hello', 'world'])
Expected:
    'grant_type=client_credentials&scope=hello+world'
Got:
    u'grant_type=client_credentials&scope=hello+world'


======================================================================
FAIL: Doctest: 
oauthlib.oauth2.rfc6749.clients.legacy_application.LegacyApplicationClient.prepare_request_body
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for 
oauthlib.oauth2.rfc6749.clients.legacy_application.LegacyApplicationClient.prepare_request_body
  File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/legacy_application.py",
 line 42, in prepare_request_body

----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/legacy_application.py",
 line 65, in 
oauthlib.oauth2.rfc6749.clients.legacy_application.LegacyApplicationClient.prepare_request_body
Failed example:
    client.prepare_request_body(username='foo', password='bar', scope=['hello', 
'world'])
Expected:
    'grant_type=password&username=foo&scope=hello+world&password=bar'
Got:
    u'grant_type=password&username=foo&scope=hello+world&password=bar'


======================================================================
FAIL: Doctest: 
oauthlib.oauth2.rfc6749.clients.mobile_application.MobileApplicationClient.parse_request_uri_response
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for 
oauthlib.oauth2.rfc6749.clients.mobile_application.MobileApplicationClient.parse_request_uri_response
  File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/mobile_application.py",
 line 98, in parse_request_uri_response

----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/mobile_application.py",
 line 146, in 
oauthlib.oauth2.rfc6749.clients.mobile_application.MobileApplicationClient.parse_request_uri_response
Failed example:
    client.parse_request_uri_response(response_uri)
Expected:
    {
        'access_token': 'sdlfkj452',
        'token_type': 'Bearer',
        'state': 'ss345asyht',
        'scope': [u'hello', u'world']
    }
Got:
    {u'access_token': u'sdlfkj452', u'token_type': u'Bearer', u'state': 
u'ss345asyht', u'scope': [u'hello', u'world']}
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/mobile_application.py",
 line 164, in 
oauthlib.oauth2.rfc6749.clients.mobile_application.MobileApplicationClient.parse_request_uri_response
Failed example:
    oauthlib.signals.scope_changed.connect(alert_scope_changed)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth2.rfc6749.clients.mobile_application.MobileApplicationClient.parse_request_uri_response[6]>",
 line 1, in <module>
        oauthlib.signals.scope_changed.connect(alert_scope_changed)
    NameError: name 'oauthlib' is not defined
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/mobile_application.py",
 line 165, in 
oauthlib.oauth2.rfc6749.clients.mobile_application.MobileApplicationClient.parse_request_uri_response
Failed example:
    client.parse_request_body_response(response_body, scope=['other'])
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth2.rfc6749.clients.mobile_application.MobileApplicationClient.parse_request_uri_response[7]>",
 line 1, in <module>
        client.parse_request_body_response(response_body, scope=['other'])
    NameError: name 'response_body' is not defined


======================================================================
FAIL: Doctest: 
oauthlib.oauth2.rfc6749.clients.mobile_application.MobileApplicationClient.prepare_request_uri
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for 
oauthlib.oauth2.rfc6749.clients.mobile_application.MobileApplicationClient.prepare_request_uri
  File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/mobile_application.py",
 line 51, in prepare_request_uri

----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/mobile_application.py",
 line 80, in 
oauthlib.oauth2.rfc6749.clients.mobile_application.MobileApplicationClient.prepare_request_uri
Failed example:
    client.prepare_request_uri('https://example.com')
Expected:
    'https://example.com?client_id=your_id&response_type=token'
Got:
    u'https://example.com?response_type=token&client_id=your_id'
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/mobile_application.py",
 line 82, in 
oauthlib.oauth2.rfc6749.clients.mobile_application.MobileApplicationClient.prepare_request_uri
Failed example:
    client.prepare_request_uri('https://example.com', 
redirect_uri='https://a.b/callback')
Expected:
    
'https://example.com?client_id=your_id&response_type=token&redirect_uri=https%3A%2F%2Fa.b%2Fcallback'
Got:
    
u'https://example.com?response_type=token&client_id=your_id&redirect_uri=https%3A%2F%2Fa.b%2Fcallback'
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/mobile_application.py",
 line 84, in 
oauthlib.oauth2.rfc6749.clients.mobile_application.MobileApplicationClient.prepare_request_uri
Failed example:
    client.prepare_request_uri('https://example.com', scope=['profile', 
'pictures'])
Expected:
    
'https://example.com?client_id=your_id&response_type=token&scope=profile+pictures'
Got:
    
u'https://example.com?response_type=token&client_id=your_id&scope=profile+pictures'
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/mobile_application.py",
 line 86, in 
oauthlib.oauth2.rfc6749.clients.mobile_application.MobileApplicationClient.prepare_request_uri
Failed example:
    client.prepare_request_uri('https://example.com', foo='bar')
Expected:
    'https://example.com?client_id=your_id&response_type=token&foo=bar'
Got:
    u'https://example.com?response_type=token&client_id=your_id&foo=bar'


======================================================================
FAIL: Doctest: 
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.parse_request_uri_response
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for 
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.parse_request_uri_response
  File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/web_application.py",
 line 130, in parse_request_uri_response

----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/web_application.py",
 line 163, in 
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.parse_request_uri_response
Failed example:
    client.parse_request_uri_response(uri, state='sfetw45')
Expected:
    {'state': 'sfetw45', 'code': 'sdfkjh345'}
Got:
    {u'state': u'sfetw45', u'code': u'sdfkjh345'}
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/web_application.py",
 line 165, in 
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.parse_request_uri_response
Failed example:
    client.parse_request_uri_response(uri, state='other')
Expected:
    Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "oauthlib/oauth2/rfc6749/__init__.py", line 357, in 
parse_request_uri_response
            back from the provider to you, the client.
        File "oauthlib/oauth2/rfc6749/parameters.py", line 153, in 
parse_authorization_code_response
            raise MismatchingStateError()
    oauthlib.oauth2.rfc6749.errors.MismatchingStateError
Got:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest 
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.parse_request_uri_response[4]>",
 line 1, in <module>
        client.parse_request_uri_response(uri, state='other')
      File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/web_application.py",
 line 174, in parse_request_uri_response
        response = parse_authorization_code_response(uri, state=state)
      File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/parameters.py",
 line 227, in parse_authorization_code_response
        raise MismatchingStateError()
    MismatchingStateError: (mismatching_state) CSRF Warning! State not equal in 
request and response.


======================================================================
FAIL: Doctest: 
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.prepare_request_body
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for 
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.prepare_request_body
  File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/web_application.py",
 line 89, in prepare_request_body

----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/web_application.py",
 line 118, in 
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.prepare_request_body
Failed example:
    client.prepare_request_body(code='sh35ksdf09sf')
Expected:
    'grant_type=authorization_code&code=sh35ksdf09sf'
Got:
    u'grant_type=authorization_code&code=sh35ksdf09sf&client_id=your_id'
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/web_application.py",
 line 120, in 
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.prepare_request_body
Failed example:
    client.prepare_request_body(code='sh35ksdf09sf', foo='bar')
Expected:
    'grant_type=authorization_code&code=sh35ksdf09sf&foo=bar'
Got:
    u'grant_type=authorization_code&code=sh35ksdf09sf&foo=bar&client_id=your_id'


======================================================================
FAIL: Doctest: 
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.prepare_request_uri
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for 
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.prepare_request_uri
  File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/web_application.py",
 line 41, in prepare_request_uri

----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/web_application.py",
 line 70, in 
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.prepare_request_uri
Failed example:
    client.prepare_request_uri('https://example.com')
Expected:
    'https://example.com?client_id=your_id&response_type=code'
Got:
    u'https://example.com?response_type=code&client_id=your_id'
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/web_application.py",
 line 72, in 
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.prepare_request_uri
Failed example:
    client.prepare_request_uri('https://example.com', 
redirect_uri='https://a.b/callback')
Expected:
    
'https://example.com?client_id=your_id&response_type=code&redirect_uri=https%3A%2F%2Fa.b%2Fcallback'
Got:
    
u'https://example.com?response_type=code&client_id=your_id&redirect_uri=https%3A%2F%2Fa.b%2Fcallback'
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/web_application.py",
 line 74, in 
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.prepare_request_uri
Failed example:
    client.prepare_request_uri('https://example.com', scope=['profile', 
'pictures'])
Expected:
    
'https://example.com?client_id=your_id&response_type=code&scope=profile+pictures'
Got:
    
u'https://example.com?response_type=code&client_id=your_id&scope=profile+pictures'
----------------------------------------------------------------------
File 
"/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build/oauthlib/oauth2/rfc6749/clients/web_application.py",
 line 76, in 
oauthlib.oauth2.rfc6749.clients.web_application.WebApplicationClient.prepare_request_uri
Failed example:
    client.prepare_request_uri('https://example.com', foo='bar')
Expected:
    'https://example.com?client_id=your_id&response_type=code&foo=bar'
Got:
    u'https://example.com?response_type=code&client_id=your_id&foo=bar'


----------------------------------------------------------------------
Ran 11 tests in 0.430s

FAILED (errors=1, failures=10)
E: pybuild pybuild:262: test: plugin distutils failed with: exit code=1: cd 
/home/lamby/temp/cdt.20150821100530.99BeiMwkaU/python-oauthlib-1.0.0/.pybuild/pythonX.Y_2.7/build;
 python2.7 -m nose --with-doctest 
dh_auto_test: pybuild --test --test-nose -i python{version} -p 2.7 --dir . 
returned exit code 13
debian/rules:8: recipe for target 'build' failed
make: *** [build] Error 25
dpkg-buildpackage: error: debian/rules build gave error exit status 2
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to