Reading package lists... Building dependency tree... Reading state information... NOTICE: 'django-oauth-toolkit' packaging is maintained in the 'Git' version control system at: git://anonscm.debian.org/python-modules/packages/django-oauth-toolkit.git Need to get 66.4 kB of source archives. Get:1 http://urika:3142/ftp.debian.org/debian/ sid/main django-oauth-toolkit 0.8.1-1 (dsc) [2,484 B] Get:2 http://urika:3142/ftp.debian.org/debian/ sid/main django-oauth-toolkit 0.8.1-1 (tar) [61.7 kB] Get:3 http://urika:3142/ftp.debian.org/debian/ sid/main django-oauth-toolkit 0.8.1-1 (diff) [2,256 B] gpgv: keyblock resource `/tmp/.gnupg/trustedkeys.gpg': file open error gpgv: Signature made Tue 23 Jun 2015 07:53:25 PM UTC using RSA key ID 51C7B5B6 gpgv: Can't check signature: public key not found dpkg-source: warning: failed to verify signature on ./django-oauth-toolkit_0.8.1-1.dsc dpkg-source: info: extracting django-oauth-toolkit in django-oauth-toolkit-0.8.1 dpkg-source: info: unpacking django-oauth-toolkit_0.8.1.orig.tar.gz dpkg-source: info: unpacking django-oauth-toolkit_0.8.1-1.debian.tar.xz Fetched 66.4 kB in 0s (5,953 kB/s) Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: bsdmainutils ca-certificates debhelper dh-python file gettext gettext-base groff-base intltool-debian libasprintf0v5 libcroco3 libexpat1 libffi6 libglib2.0-0 libicu52 libmagic1 libmpdec2 libpipeline1 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libpython3-stdlib libpython3.4-minimal libpython3.4-stdlib libsqlite3-0 libunistring0 libxml2 man-db mime-support openssl po-debconf python python-all python-blinker python-cffi python-cffi-backend python-chardet python-colorama python-cryptography python-distlib python-django python-django-braces python-django-common python-djangorestframework python-enum34 python-funcsigs python-html5lib python-idna python-ipaddress python-jwt python-minimal python-mock python-oauthlib python-pbr python-pip python-pkg-resources python-ply python-pyasn1 python-pycparser python-requests python-setuptools python-six python-urllib3 python2.7 python2.7-minimal python3 python3-all python3-blinker python3-cffi python3-cffi-backend python3-chardet python3-colorama python3-cryptography python3-distlib python3-django python3-django-braces python3-djangorestframework python3-funcsigs python3-html5lib python3-idna python3-jwt python3-minimal python3-mock python3-oauthlib python3-pbr python3-pip python3-pkg-resources python3-ply python3-pyasn1 python3-pycparser python3-requests python3-setuptools python3-six python3-urllib3 python3.4 python3.4-minimal 0 upgraded, 96 newly installed, 0 to remove and 0 not upgraded. Need to get 33.0 MB of archives. After this operation, 158 MB of additional disk space will be used. Get:1 http://urika:3142/ftp.debian.org/debian/ sid/main libasprintf0v5 amd64 0.19.5.1-1 [32.2 kB] Get:2 http://urika:3142/ftp.debian.org/debian/ sid/main libmagic1 amd64 1:5.22+15-2 [249 kB] Get:3 http://urika:3142/ftp.debian.org/debian/ sid/main libicu52 amd64 52.1-10 [6,786 kB] Get:4 http://urika:3142/ftp.debian.org/debian/ sid/main libxml2 amd64 2.9.2+dfsg1-3 [934 kB] Get:5 http://urika:3142/ftp.debian.org/debian/ sid/main groff-base amd64 1.22.3-1 [1,205 kB] Get:6 http://urika:3142/ftp.debian.org/debian/ sid/main bsdmainutils amd64 9.0.6 [183 kB] Get:7 http://urika:3142/ftp.debian.org/debian/ sid/main libpipeline1 amd64 1.4.1-1 [27.8 kB] Get:8 http://urika:3142/ftp.debian.org/debian/ sid/main man-db amd64 2.7.2-1 [1,000 kB] Get:9 http://urika:3142/ftp.debian.org/debian/ sid/main libpython2.7-minimal amd64 2.7.10-3 [382 kB] Get:10 http://urika:3142/ftp.debian.org/debian/ sid/main python2.7-minimal amd64 2.7.10-3 [1,418 kB] Get:11 http://urika:3142/ftp.debian.org/debian/ sid/main python-minimal amd64 2.7.9-1 [40.3 kB] Get:12 http://urika:3142/ftp.debian.org/debian/ sid/main mime-support all 3.59 [36.4 kB] Get:13 http://urika:3142/ftp.debian.org/debian/ sid/main libexpat1 amd64 2.1.0-7 [80.0 kB] Get:14 http://urika:3142/ftp.debian.org/debian/ sid/main libffi6 amd64 3.2.1-3 [20.1 kB] Get:15 http://urika:3142/ftp.debian.org/debian/ sid/main libsqlite3-0 amd64 3.8.11.1-1 [454 kB] Get:16 http://urika:3142/ftp.debian.org/debian/ sid/main libpython2.7-stdlib amd64 2.7.10-3 [1,854 kB] Get:17 http://urika:3142/ftp.debian.org/debian/ sid/main python2.7 amd64 2.7.10-3 [258 kB] Get:18 http://urika:3142/ftp.debian.org/debian/ sid/main libpython-stdlib amd64 2.7.9-1 [19.5 kB] Get:19 http://urika:3142/ftp.debian.org/debian/ sid/main python amd64 2.7.9-1 [151 kB] Get:20 http://urika:3142/ftp.debian.org/debian/ sid/main libglib2.0-0 amd64 2.44.1-1.1 [2,461 kB] Get:21 http://urika:3142/ftp.debian.org/debian/ sid/main libcroco3 amd64 0.6.8-3+b1 [135 kB] Get:22 http://urika:3142/ftp.debian.org/debian/ sid/main libmpdec2 amd64 2.4.1-1 [85.7 kB] Get:23 http://urika:3142/ftp.debian.org/debian/ sid/main libpython3.4-minimal amd64 3.4.3-8 [495 kB] Get:24 http://urika:3142/ftp.debian.org/debian/ sid/main libpython3.4-stdlib amd64 3.4.3-8 [2,057 kB] Get:25 http://urika:3142/ftp.debian.org/debian/ sid/main libunistring0 amd64 0.9.3-5.2+b1 [288 kB] Get:26 http://urika:3142/ftp.debian.org/debian/ sid/main python-six all 1.9.0-3 [13.6 kB] Get:27 http://urika:3142/ftp.debian.org/debian/ sid/main openssl amd64 1.0.2d-1 [695 kB] Get:28 http://urika:3142/ftp.debian.org/debian/ sid/main ca-certificates all 20150426 [208 kB] Get:29 http://urika:3142/ftp.debian.org/debian/ sid/main python-colorama all 0.3.3-1 [21.4 kB] Get:30 http://urika:3142/ftp.debian.org/debian/ sid/main python-distlib all 0.2.1-1 [116 kB] Get:31 http://urika:3142/ftp.debian.org/debian/ sid/main python-html5lib all 0.999-3 [84.0 kB] Get:32 http://urika:3142/ftp.debian.org/debian/ sid/main python-pkg-resources all 18.0.1-2 [73.6 kB] Get:33 http://urika:3142/ftp.debian.org/debian/ sid/main python-chardet all 2.3.0-1 [96.2 kB] Get:34 http://urika:3142/ftp.debian.org/debian/ sid/main python-urllib3 all 1.11-1 [64.4 kB] Get:35 http://urika:3142/ftp.debian.org/debian/ sid/main python-requests all 2.7.0-3 [66.3 kB] Get:36 http://urika:3142/ftp.debian.org/debian/ sid/main python-setuptools all 18.0.1-2 [180 kB] Get:37 http://urika:3142/ftp.debian.org/debian/ sid/main python-pip all 1.5.6-6 [114 kB] Get:38 http://urika:3142/ftp.debian.org/debian/ sid/main python-pbr all 0.11.0-1 [42.3 kB] Get:39 http://urika:3142/ftp.debian.org/debian/ sid/main python3.4-minimal amd64 3.4.3-8 [1,401 kB] Get:40 http://urika:3142/ftp.debian.org/debian/ sid/main python3-minimal amd64 3.4.3-4 [34.7 kB] Get:41 http://urika:3142/ftp.debian.org/debian/ sid/main python3.4 amd64 3.4.3-8 [219 kB] Get:42 http://urika:3142/ftp.debian.org/debian/ sid/main libpython3-stdlib amd64 3.4.3-4 [18.1 kB] Get:43 http://urika:3142/ftp.debian.org/debian/ sid/main dh-python all 2.20150728 [71.3 kB] Get:44 http://urika:3142/ftp.debian.org/debian/ sid/main python3 amd64 3.4.3-4 [21.1 kB] Get:45 http://urika:3142/ftp.debian.org/debian/ sid/main python3-six all 1.9.0-3 [13.7 kB] Get:46 http://urika:3142/ftp.debian.org/debian/ sid/main python3-colorama all 0.3.3-1 [14.0 kB] Get:47 http://urika:3142/ftp.debian.org/debian/ sid/main python3-distlib all 0.2.1-1 [116 kB] Get:48 http://urika:3142/ftp.debian.org/debian/ sid/main python3-html5lib all 0.999-3 [82.3 kB] Get:49 http://urika:3142/ftp.debian.org/debian/ sid/main python3-pkg-resources all 18.0.1-2 [44.2 kB] Get:50 http://urika:3142/ftp.debian.org/debian/ sid/main python3-chardet all 2.3.0-1 [96.1 kB] Get:51 http://urika:3142/ftp.debian.org/debian/ sid/main python3-urllib3 all 1.11-1 [64.6 kB] Get:52 http://urika:3142/ftp.debian.org/debian/ sid/main python3-requests all 2.7.0-3 [66.1 kB] Get:53 http://urika:3142/ftp.debian.org/debian/ sid/main python3-setuptools all 18.0.1-2 [92.6 kB] Get:54 http://urika:3142/ftp.debian.org/debian/ sid/main python3-pip all 1.5.6-6 [97.4 kB] Get:55 http://urika:3142/ftp.debian.org/debian/ sid/main python3-pbr all 0.11.0-1 [32.5 kB] Get:56 http://urika:3142/ftp.debian.org/debian/ sid/main file amd64 1:5.22+15-2 [60.1 kB] Get:57 http://urika:3142/ftp.debian.org/debian/ sid/main gettext-base amd64 0.19.5.1-1 [122 kB] Get:58 http://urika:3142/ftp.debian.org/debian/ sid/main gettext amd64 0.19.5.1-1 [1,459 kB] Get:59 http://urika:3142/ftp.debian.org/debian/ sid/main intltool-debian all 0.35.0+20060710.2 [25.9 kB] Get:60 http://urika:3142/ftp.debian.org/debian/ sid/main po-debconf all 1.0.18 [248 kB] Get:61 http://urika:3142/ftp.debian.org/debian/ sid/main debhelper all 9.20150811 [817 kB] Get:62 http://urika:3142/ftp.debian.org/debian/ sid/main python-all amd64 2.7.9-1 [996 B] Get:63 http://urika:3142/ftp.debian.org/debian/ sid/main python-blinker all 1.3.dfsg2-1 [13.1 kB] Get:64 http://urika:3142/ftp.debian.org/debian/ sid/main python-cffi-backend amd64 1.1.2-1 [54.6 kB] Get:65 http://urika:3142/ftp.debian.org/debian/ sid/main python-ply all 3.4-5 [62.9 kB] Get:66 http://urika:3142/ftp.debian.org/debian/ sid/main python-pycparser all 2.14+dfsg-1 [61.7 kB] Get:67 http://urika:3142/ftp.debian.org/debian/ sid/main python-cffi all 1.1.2-1 [55.9 kB] Get:68 http://urika:3142/ftp.debian.org/debian/ sid/main python-enum34 all 1.0.4-1 [27.1 kB] Get:69 http://urika:3142/ftp.debian.org/debian/ sid/main python-idna all 2.0-2 [35.8 kB] Get:70 http://urika:3142/ftp.debian.org/debian/ sid/main python-ipaddress all 1.0.14-1 [17.8 kB] Get:71 http://urika:3142/ftp.debian.org/debian/ sid/main python-pyasn1 all 0.1.8-1 [52.5 kB] Get:72 http://urika:3142/ftp.debian.org/debian/ sid/main python-cryptography amd64 0.9.3-1 [191 kB] Get:73 http://urika:3142/ftp.debian.org/debian/ sid/main python-django-common all 1.7.9-1 [1,490 kB] Get:74 http://urika:3142/ftp.debian.org/debian/ sid/main python-django all 1.7.9-1 [982 kB] Get:75 http://urika:3142/ftp.debian.org/debian/ sid/main python-django-braces all 1.8.0-1 [16.2 kB] Get:76 http://urika:3142/ftp.debian.org/debian/ sid/main python-djangorestframework all 3.0.5-2 [248 kB] Get:77 http://urika:3142/ftp.debian.org/debian/ sid/main python-funcsigs all 0.4-1 [12.7 kB] Get:78 http://urika:3142/ftp.debian.org/debian/ sid/main python-jwt all 1.3.0-1 [21.6 kB] Get:79 http://urika:3142/ftp.debian.org/debian/ sid/main python-oauthlib all 1.0.0-1 [62.2 kB] Get:80 http://urika:3142/ftp.debian.org/debian/ sid/main python3-all amd64 3.4.3-4 [932 B] Get:81 http://urika:3142/ftp.debian.org/debian/ sid/main python3-blinker all 1.3.dfsg2-1 [13.2 kB] Get:82 http://urika:3142/ftp.debian.org/debian/ sid/main python3-cffi-backend amd64 1.1.2-1 [55.5 kB] Get:83 http://urika:3142/ftp.debian.org/debian/ sid/main python3-ply all 3.4-5 [62.9 kB] Get:84 http://urika:3142/ftp.debian.org/debian/ sid/main python3-pycparser all 2.14+dfsg-1 [61.7 kB] Get:85 http://urika:3142/ftp.debian.org/debian/ sid/main python3-cffi all 1.1.2-1 [56.0 kB] Get:86 http://urika:3142/ftp.debian.org/debian/ sid/main python3-idna all 2.0-2 [35.8 kB] Get:87 http://urika:3142/ftp.debian.org/debian/ sid/main python3-pyasn1 all 0.1.8-1 [35.3 kB] Get:88 http://urika:3142/ftp.debian.org/debian/ sid/main python3-cryptography amd64 0.9.3-1 [192 kB] Get:89 http://urika:3142/ftp.debian.org/debian/ sid/main python3-django all 1.7.9-1 [964 kB] Get:90 http://urika:3142/ftp.debian.org/debian/ sid/main python3-django-braces all 1.8.0-1 [16.3 kB] Get:91 http://urika:3142/ftp.debian.org/debian/ sid/main python3-djangorestframework all 3.0.5-2 [248 kB] Get:92 http://urika:3142/ftp.debian.org/debian/ sid/main python3-funcsigs all 0.4-1 [12.8 kB] Get:93 http://urika:3142/ftp.debian.org/debian/ sid/main python3-jwt all 1.3.0-1 [17.2 kB] Get:94 http://urika:3142/ftp.debian.org/debian/ sid/main python3-oauthlib all 1.0.0-1 [62.0 kB] Get:95 http://urika:3142/ftp.debian.org/debian/ sid/main python-mock all 1.3.0-2.1 [58.2 kB] Get:96 http://urika:3142/ftp.debian.org/debian/ sid/main python3-mock all 1.3.0-2.1 [58.3 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 33.0 MB in 1s (32.2 MB/s) Selecting previously unselected package libasprintf0v5:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 15408 files and directories currently installed.) Preparing to unpack .../libasprintf0v5_0.19.5.1-1_amd64.deb ... Unpacking libasprintf0v5:amd64 (0.19.5.1-1) ... Selecting previously unselected package libmagic1:amd64. Preparing to unpack .../libmagic1_1%3a5.22+15-2_amd64.deb ... Unpacking libmagic1:amd64 (1:5.22+15-2) ... Selecting previously unselected package libicu52:amd64. Preparing to unpack .../libicu52_52.1-10_amd64.deb ... Unpacking libicu52:amd64 (52.1-10) ... Selecting previously unselected package libxml2:amd64. Preparing to unpack .../libxml2_2.9.2+dfsg1-3_amd64.deb ... Unpacking libxml2:amd64 (2.9.2+dfsg1-3) ... Selecting previously unselected package groff-base. Preparing to unpack .../groff-base_1.22.3-1_amd64.deb ... Unpacking groff-base (1.22.3-1) ... Selecting previously unselected package bsdmainutils. Preparing to unpack .../bsdmainutils_9.0.6_amd64.deb ... Unpacking bsdmainutils (9.0.6) ... Selecting previously unselected package libpipeline1:amd64. Preparing to unpack .../libpipeline1_1.4.1-1_amd64.deb ... Unpacking libpipeline1:amd64 (1.4.1-1) ... Selecting previously unselected package man-db. Preparing to unpack .../man-db_2.7.2-1_amd64.deb ... Unpacking man-db (2.7.2-1) ... Selecting previously unselected package libpython2.7-minimal:amd64. Preparing to unpack .../libpython2.7-minimal_2.7.10-3_amd64.deb ... Unpacking libpython2.7-minimal:amd64 (2.7.10-3) ... Selecting previously unselected package python2.7-minimal. Preparing to unpack .../python2.7-minimal_2.7.10-3_amd64.deb ... Unpacking python2.7-minimal (2.7.10-3) ... Selecting previously unselected package python-minimal. Preparing to unpack .../python-minimal_2.7.9-1_amd64.deb ... Unpacking python-minimal (2.7.9-1) ... Selecting previously unselected package mime-support. Preparing to unpack .../mime-support_3.59_all.deb ... Unpacking mime-support (3.59) ... Selecting previously unselected package libexpat1:amd64. Preparing to unpack .../libexpat1_2.1.0-7_amd64.deb ... Unpacking libexpat1:amd64 (2.1.0-7) ... Selecting previously unselected package libffi6:amd64. Preparing to unpack .../libffi6_3.2.1-3_amd64.deb ... Unpacking libffi6:amd64 (3.2.1-3) ... Selecting previously unselected package libsqlite3-0:amd64. Preparing to unpack .../libsqlite3-0_3.8.11.1-1_amd64.deb ... Unpacking libsqlite3-0:amd64 (3.8.11.1-1) ... Selecting previously unselected package libpython2.7-stdlib:amd64. Preparing to unpack .../libpython2.7-stdlib_2.7.10-3_amd64.deb ... Unpacking libpython2.7-stdlib:amd64 (2.7.10-3) ... Selecting previously unselected package python2.7. Preparing to unpack .../python2.7_2.7.10-3_amd64.deb ... Unpacking python2.7 (2.7.10-3) ... Selecting previously unselected package libpython-stdlib:amd64. Preparing to unpack .../libpython-stdlib_2.7.9-1_amd64.deb ... Unpacking libpython-stdlib:amd64 (2.7.9-1) ... Setting up libpython2.7-minimal:amd64 (2.7.10-3) ... Setting up python2.7-minimal (2.7.10-3) ... Setting up python-minimal (2.7.9-1) ... Selecting previously unselected package python. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 16807 files and directories currently installed.) Preparing to unpack .../python_2.7.9-1_amd64.deb ... Unpacking python (2.7.9-1) ... Selecting previously unselected package libglib2.0-0:amd64. Preparing to unpack .../libglib2.0-0_2.44.1-1.1_amd64.deb ... Unpacking libglib2.0-0:amd64 (2.44.1-1.1) ... Selecting previously unselected package libcroco3:amd64. Preparing to unpack .../libcroco3_0.6.8-3+b1_amd64.deb ... Unpacking libcroco3:amd64 (0.6.8-3+b1) ... Selecting previously unselected package libmpdec2:amd64. Preparing to unpack .../libmpdec2_2.4.1-1_amd64.deb ... Unpacking libmpdec2:amd64 (2.4.1-1) ... Selecting previously unselected package libpython3.4-minimal:amd64. Preparing to unpack .../libpython3.4-minimal_3.4.3-8_amd64.deb ... Unpacking libpython3.4-minimal:amd64 (3.4.3-8) ... Selecting previously unselected package libpython3.4-stdlib:amd64. Preparing to unpack .../libpython3.4-stdlib_3.4.3-8_amd64.deb ... Unpacking libpython3.4-stdlib:amd64 (3.4.3-8) ... Selecting previously unselected package libunistring0:amd64. Preparing to unpack .../libunistring0_0.9.3-5.2+b1_amd64.deb ... Unpacking libunistring0:amd64 (0.9.3-5.2+b1) ... Selecting previously unselected package python-six. Preparing to unpack .../python-six_1.9.0-3_all.deb ... Unpacking python-six (1.9.0-3) ... Selecting previously unselected package openssl. Preparing to unpack .../openssl_1.0.2d-1_amd64.deb ... Unpacking openssl (1.0.2d-1) ... Selecting previously unselected package ca-certificates. Preparing to unpack .../ca-certificates_20150426_all.deb ... Unpacking ca-certificates (20150426) ... Selecting previously unselected package python-colorama. Preparing to unpack .../python-colorama_0.3.3-1_all.deb ... Unpacking python-colorama (0.3.3-1) ... Selecting previously unselected package python-distlib. Preparing to unpack .../python-distlib_0.2.1-1_all.deb ... Unpacking python-distlib (0.2.1-1) ... Selecting previously unselected package python-html5lib. Preparing to unpack .../python-html5lib_0.999-3_all.deb ... Unpacking python-html5lib (0.999-3) ... Selecting previously unselected package python-pkg-resources. Preparing to unpack .../python-pkg-resources_18.0.1-2_all.deb ... Unpacking python-pkg-resources (18.0.1-2) ... Selecting previously unselected package python-chardet. Preparing to unpack .../python-chardet_2.3.0-1_all.deb ... Unpacking python-chardet (2.3.0-1) ... Selecting previously unselected package python-urllib3. Preparing to unpack .../python-urllib3_1.11-1_all.deb ... Unpacking python-urllib3 (1.11-1) ... Selecting previously unselected package python-requests. Preparing to unpack .../python-requests_2.7.0-3_all.deb ... Unpacking python-requests (2.7.0-3) ... Selecting previously unselected package python-setuptools. Preparing to unpack .../python-setuptools_18.0.1-2_all.deb ... Unpacking python-setuptools (18.0.1-2) ... Selecting previously unselected package python-pip. Preparing to unpack .../python-pip_1.5.6-6_all.deb ... Unpacking python-pip (1.5.6-6) ... Selecting previously unselected package python-pbr. Preparing to unpack .../python-pbr_0.11.0-1_all.deb ... Unpacking python-pbr (0.11.0-1) ... Selecting previously unselected package python3.4-minimal. Preparing to unpack .../python3.4-minimal_3.4.3-8_amd64.deb ... Unpacking python3.4-minimal (3.4.3-8) ... Selecting previously unselected package python3-minimal. Preparing to unpack .../python3-minimal_3.4.3-4_amd64.deb ... Unpacking python3-minimal (3.4.3-4) ... Selecting previously unselected package python3.4. Preparing to unpack .../python3.4_3.4.3-8_amd64.deb ... Unpacking python3.4 (3.4.3-8) ... Selecting previously unselected package libpython3-stdlib:amd64. Preparing to unpack .../libpython3-stdlib_3.4.3-4_amd64.deb ... Unpacking libpython3-stdlib:amd64 (3.4.3-4) ... Selecting previously unselected package dh-python. Preparing to unpack .../dh-python_2.20150728_all.deb ... Unpacking dh-python (2.20150728) ... Setting up libpython3.4-minimal:amd64 (3.4.3-8) ... Setting up libexpat1:amd64 (2.1.0-7) ... Setting up python3.4-minimal (3.4.3-8) ... Setting up python3-minimal (3.4.3-4) ... Processing triggers for libc-bin (2.19-19) ... Selecting previously unselected package python3. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 18575 files and directories currently installed.) Preparing to unpack .../python3_3.4.3-4_amd64.deb ... Unpacking python3 (3.4.3-4) ... Selecting previously unselected package python3-six. Preparing to unpack .../python3-six_1.9.0-3_all.deb ... Unpacking python3-six (1.9.0-3) ... Selecting previously unselected package python3-colorama. Preparing to unpack .../python3-colorama_0.3.3-1_all.deb ... Unpacking python3-colorama (0.3.3-1) ... Selecting previously unselected package python3-distlib. Preparing to unpack .../python3-distlib_0.2.1-1_all.deb ... Unpacking python3-distlib (0.2.1-1) ... Selecting previously unselected package python3-html5lib. Preparing to unpack .../python3-html5lib_0.999-3_all.deb ... Unpacking python3-html5lib (0.999-3) ... Selecting previously unselected package python3-pkg-resources. Preparing to unpack .../python3-pkg-resources_18.0.1-2_all.deb ... Unpacking python3-pkg-resources (18.0.1-2) ... Selecting previously unselected package python3-chardet. Preparing to unpack .../python3-chardet_2.3.0-1_all.deb ... Unpacking python3-chardet (2.3.0-1) ... Selecting previously unselected package python3-urllib3. Preparing to unpack .../python3-urllib3_1.11-1_all.deb ... Unpacking python3-urllib3 (1.11-1) ... Selecting previously unselected package python3-requests. Preparing to unpack .../python3-requests_2.7.0-3_all.deb ... Unpacking python3-requests (2.7.0-3) ... Selecting previously unselected package python3-setuptools. Preparing to unpack .../python3-setuptools_18.0.1-2_all.deb ... Unpacking python3-setuptools (18.0.1-2) ... Selecting previously unselected package python3-pip. Preparing to unpack .../python3-pip_1.5.6-6_all.deb ... Unpacking python3-pip (1.5.6-6) ... Selecting previously unselected package python3-pbr. Preparing to unpack .../python3-pbr_0.11.0-1_all.deb ... Unpacking python3-pbr (0.11.0-1) ... Selecting previously unselected package file. Preparing to unpack .../file_1%3a5.22+15-2_amd64.deb ... Unpacking file (1:5.22+15-2) ... Selecting previously unselected package gettext-base. Preparing to unpack .../gettext-base_0.19.5.1-1_amd64.deb ... Unpacking gettext-base (0.19.5.1-1) ... Selecting previously unselected package gettext. Preparing to unpack .../gettext_0.19.5.1-1_amd64.deb ... Unpacking gettext (0.19.5.1-1) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../intltool-debian_0.35.0+20060710.2_all.deb ... Unpacking intltool-debian (0.35.0+20060710.2) ... Selecting previously unselected package po-debconf. Preparing to unpack .../po-debconf_1.0.18_all.deb ... Unpacking po-debconf (1.0.18) ... Selecting previously unselected package debhelper. Preparing to unpack .../debhelper_9.20150811_all.deb ... Unpacking debhelper (9.20150811) ... Selecting previously unselected package python-all. Preparing to unpack .../python-all_2.7.9-1_amd64.deb ... Unpacking python-all (2.7.9-1) ... Selecting previously unselected package python-blinker. Preparing to unpack .../python-blinker_1.3.dfsg2-1_all.deb ... Unpacking python-blinker (1.3.dfsg2-1) ... Selecting previously unselected package python-cffi-backend. Preparing to unpack .../python-cffi-backend_1.1.2-1_amd64.deb ... Unpacking python-cffi-backend (1.1.2-1) ... Selecting previously unselected package python-ply. Preparing to unpack .../python-ply_3.4-5_all.deb ... Unpacking python-ply (3.4-5) ... Selecting previously unselected package python-pycparser. Preparing to unpack .../python-pycparser_2.14+dfsg-1_all.deb ... Unpacking python-pycparser (2.14+dfsg-1) ... Selecting previously unselected package python-cffi. Preparing to unpack .../python-cffi_1.1.2-1_all.deb ... Unpacking python-cffi (1.1.2-1) ... Selecting previously unselected package python-enum34. Preparing to unpack .../python-enum34_1.0.4-1_all.deb ... Unpacking python-enum34 (1.0.4-1) ... Selecting previously unselected package python-idna. Preparing to unpack .../python-idna_2.0-2_all.deb ... Unpacking python-idna (2.0-2) ... Selecting previously unselected package python-ipaddress. Preparing to unpack .../python-ipaddress_1.0.14-1_all.deb ... Unpacking python-ipaddress (1.0.14-1) ... Selecting previously unselected package python-pyasn1. Preparing to unpack .../python-pyasn1_0.1.8-1_all.deb ... Unpacking python-pyasn1 (0.1.8-1) ... Selecting previously unselected package python-cryptography. Preparing to unpack .../python-cryptography_0.9.3-1_amd64.deb ... Unpacking python-cryptography (0.9.3-1) ... Selecting previously unselected package python-django-common. Preparing to unpack .../python-django-common_1.7.9-1_all.deb ... Unpacking python-django-common (1.7.9-1) ... Selecting previously unselected package python-django. Preparing to unpack .../python-django_1.7.9-1_all.deb ... Unpacking python-django (1.7.9-1) ... Selecting previously unselected package python-django-braces. Preparing to unpack .../python-django-braces_1.8.0-1_all.deb ... Unpacking python-django-braces (1.8.0-1) ... Selecting previously unselected package python-djangorestframework. Preparing to unpack .../python-djangorestframework_3.0.5-2_all.deb ... Unpacking python-djangorestframework (3.0.5-2) ... Selecting previously unselected package python-funcsigs. Preparing to unpack .../python-funcsigs_0.4-1_all.deb ... Unpacking python-funcsigs (0.4-1) ... Selecting previously unselected package python-jwt. Preparing to unpack .../python-jwt_1.3.0-1_all.deb ... Unpacking python-jwt (1.3.0-1) ... Selecting previously unselected package python-oauthlib. Preparing to unpack .../python-oauthlib_1.0.0-1_all.deb ... Unpacking python-oauthlib (1.0.0-1) ... Selecting previously unselected package python3-all. Preparing to unpack .../python3-all_3.4.3-4_amd64.deb ... Unpacking python3-all (3.4.3-4) ... Selecting previously unselected package python3-blinker. Preparing to unpack .../python3-blinker_1.3.dfsg2-1_all.deb ... Unpacking python3-blinker (1.3.dfsg2-1) ... Selecting previously unselected package python3-cffi-backend. Preparing to unpack .../python3-cffi-backend_1.1.2-1_amd64.deb ... Unpacking python3-cffi-backend (1.1.2-1) ... Selecting previously unselected package python3-ply. Preparing to unpack .../python3-ply_3.4-5_all.deb ... Unpacking python3-ply (3.4-5) ... Selecting previously unselected package python3-pycparser. Preparing to unpack .../python3-pycparser_2.14+dfsg-1_all.deb ... Unpacking python3-pycparser (2.14+dfsg-1) ... Selecting previously unselected package python3-cffi. Preparing to unpack .../python3-cffi_1.1.2-1_all.deb ... Unpacking python3-cffi (1.1.2-1) ... Selecting previously unselected package python3-idna. Preparing to unpack .../python3-idna_2.0-2_all.deb ... Unpacking python3-idna (2.0-2) ... Selecting previously unselected package python3-pyasn1. Preparing to unpack .../python3-pyasn1_0.1.8-1_all.deb ... Unpacking python3-pyasn1 (0.1.8-1) ... Selecting previously unselected package python3-cryptography. Preparing to unpack .../python3-cryptography_0.9.3-1_amd64.deb ... Unpacking python3-cryptography (0.9.3-1) ... Selecting previously unselected package python3-django. Preparing to unpack .../python3-django_1.7.9-1_all.deb ... Unpacking python3-django (1.7.9-1) ... Selecting previously unselected package python3-django-braces. Preparing to unpack .../python3-django-braces_1.8.0-1_all.deb ... Unpacking python3-django-braces (1.8.0-1) ... Selecting previously unselected package python3-djangorestframework. Preparing to unpack .../python3-djangorestframework_3.0.5-2_all.deb ... Unpacking python3-djangorestframework (3.0.5-2) ... Selecting previously unselected package python3-funcsigs. Preparing to unpack .../python3-funcsigs_0.4-1_all.deb ... Unpacking python3-funcsigs (0.4-1) ... Selecting previously unselected package python3-jwt. Preparing to unpack .../python3-jwt_1.3.0-1_all.deb ... Unpacking python3-jwt (1.3.0-1) ... Selecting previously unselected package python3-oauthlib. Preparing to unpack .../python3-oauthlib_1.0.0-1_all.deb ... Unpacking python3-oauthlib (1.0.0-1) ... Selecting previously unselected package python-mock. Preparing to unpack .../python-mock_1.3.0-2.1_all.deb ... Unpacking python-mock (1.3.0-2.1) ... Selecting previously unselected package python3-mock. Preparing to unpack .../python3-mock_1.3.0-2.1_all.deb ... Unpacking python3-mock (1.3.0-2.1) ... Setting up libasprintf0v5:amd64 (0.19.5.1-1) ... Setting up libmagic1:amd64 (1:5.22+15-2) ... Setting up libicu52:amd64 (52.1-10) ... Setting up libxml2:amd64 (2.9.2+dfsg1-3) ... Setting up groff-base (1.22.3-1) ... Setting up bsdmainutils (9.0.6) ... update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode Setting up libpipeline1:amd64 (1.4.1-1) ... Setting up man-db (2.7.2-1) ... Building database of manual pages ... Setting up mime-support (3.59) ... Setting up libffi6:amd64 (3.2.1-3) ... Setting up libsqlite3-0:amd64 (3.8.11.1-1) ... Setting up libpython2.7-stdlib:amd64 (2.7.10-3) ... Setting up python2.7 (2.7.10-3) ... Setting up libpython-stdlib:amd64 (2.7.9-1) ... Setting up python (2.7.9-1) ... Setting up libglib2.0-0:amd64 (2.44.1-1.1) ... No schema files found: doing nothing. Setting up libcroco3:amd64 (0.6.8-3+b1) ... Setting up libmpdec2:amd64 (2.4.1-1) ... Setting up libpython3.4-stdlib:amd64 (3.4.3-8) ... Setting up libunistring0:amd64 (0.9.3-5.2+b1) ... Setting up python-six (1.9.0-3) ... Setting up openssl (1.0.2d-1) ... Setting up ca-certificates (20150426) ... Setting up python-colorama (0.3.3-1) ... Setting up python-distlib (0.2.1-1) ... Setting up python-html5lib (0.999-3) ... Setting up python-pkg-resources (18.0.1-2) ... Setting up python-chardet (2.3.0-1) ... Setting up python-urllib3 (1.11-1) ... Setting up python-requests (2.7.0-3) ... Setting up python-setuptools (18.0.1-2) ... Setting up python-pip (1.5.6-6) ... Setting up python-pbr (0.11.0-1) ... update-alternatives: using /usr/bin/python2-pbr to provide /usr/bin/pbr (pbr) in auto mode Setting up python3.4 (3.4.3-8) ... Setting up libpython3-stdlib:amd64 (3.4.3-4) ... Setting up file (1:5.22+15-2) ... Setting up gettext-base (0.19.5.1-1) ... Setting up gettext (0.19.5.1-1) ... Setting up intltool-debian (0.35.0+20060710.2) ... Setting up po-debconf (1.0.18) ... Setting up debhelper (9.20150811) ... Setting up python-all (2.7.9-1) ... Setting up python-blinker (1.3.dfsg2-1) ... Setting up python-cffi-backend (1.1.2-1) ... Setting up python-ply (3.4-5) ... Setting up python-pycparser (2.14+dfsg-1) ... Setting up python-cffi (1.1.2-1) ... Setting up python-enum34 (1.0.4-1) ... Setting up python-idna (2.0-2) ... Setting up python-ipaddress (1.0.14-1) ... Setting up python-pyasn1 (0.1.8-1) ... Setting up python-cryptography (0.9.3-1) ... Setting up python-django-common (1.7.9-1) ... Setting up python-django (1.7.9-1) ... Setting up python-django-braces (1.8.0-1) ... Setting up python-djangorestframework (3.0.5-2) ... Setting up python-funcsigs (0.4-1) ... Setting up python-jwt (1.3.0-1) ... Setting up python-oauthlib (1.0.0-1) ... Setting up python3-pyasn1 (0.1.8-1) ... Setting up python-mock (1.3.0-2.1) ... Setting up dh-python (2.20150728) ... Setting up python3 (3.4.3-4) ... Setting up python3-six (1.9.0-3) ... Setting up python3-colorama (0.3.3-1) ... Setting up python3-distlib (0.2.1-1) ... Setting up python3-html5lib (0.999-3) ... Setting up python3-pkg-resources (18.0.1-2) ... Setting up python3-chardet (2.3.0-1) ... Setting up python3-urllib3 (1.11-1) ... Setting up python3-requests (2.7.0-3) ... Setting up python3-setuptools (18.0.1-2) ... Setting up python3-pip (1.5.6-6) ... Setting up python3-pbr (0.11.0-1) ... Setting up python3-all (3.4.3-4) ... Setting up python3-blinker (1.3.dfsg2-1) ... Setting up python3-cffi-backend (1.1.2-1) ... Setting up python3-ply (3.4-5) ... Setting up python3-pycparser (2.14+dfsg-1) ... Setting up python3-cffi (1.1.2-1) ... Setting up python3-idna (2.0-2) ... Setting up python3-cryptography (0.9.3-1) ... Setting up python3-django (1.7.9-1) ... Setting up python3-django-braces (1.8.0-1) ... Setting up python3-djangorestframework (3.0.5-2) ... Setting up python3-funcsigs (0.4-1) ... Setting up python3-jwt (1.3.0-1) ... Setting up python3-oauthlib (1.0.0-1) ... Setting up python3-mock (1.3.0-2.1) ... Processing triggers for libc-bin (2.19-19) ... Processing triggers for ca-certificates (20150426) ... Updating certificates in /etc/ssl/certs... 180 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. Killed old client process Internet Systems Consortium DHCP Client 4.3.2 Copyright 2004-2015 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/d6:c9:b2:dd:1b:35 Sending on LPF/eth0/d6:c9:b2:dd:1b:35 Sending on Socket/fallback DHCPRELEASE on eth0 to 10.0.3.1 port 67 dpkg-buildpackage: source package django-oauth-toolkit dpkg-buildpackage: source version 0.8.1-1 dpkg-buildpackage: source distribution unstable dpkg-buildpackage: source changed by Michael Fladischer dpkg-source --before-build django-oauth-toolkit-0.8.1 dpkg-buildpackage: host architecture amd64 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 '/django-oauth-toolkit-0.8.1/.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 '/django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build' (and everything under it) '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 dpkg-source -b django-oauth-toolkit-0.8.1 dpkg-source: info: using source format '3.0 (quilt)' dpkg-source: info: building django-oauth-toolkit using existing ./django-oauth-toolkit_0.8.1.orig.tar.gz dpkg-source: info: building django-oauth-toolkit in django-oauth-toolkit_0.8.1-1.debian.tar.xz dpkg-source: info: building django-oauth-toolkit in django-oauth-toolkit_0.8.1-1.dsc 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 dh_auto_build -O--buildsystem=pybuild I: pybuild base:170: /usr/bin/python setup.py build running build running build_py creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider copying oauth2_provider/__init__.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider copying oauth2_provider/admin.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider copying oauth2_provider/backends.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider copying oauth2_provider/compat.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider copying oauth2_provider/decorators.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider copying oauth2_provider/exceptions.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider copying oauth2_provider/forms.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider copying oauth2_provider/generators.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider copying oauth2_provider/http.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider copying oauth2_provider/middleware.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider copying oauth2_provider/models.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider copying oauth2_provider/oauth2_backends.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider copying oauth2_provider/oauth2_validators.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider copying oauth2_provider/settings.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider copying oauth2_provider/urls.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider copying oauth2_provider/validators.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/ext copying oauth2_provider/ext/__init__.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/ext creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/migrations copying oauth2_provider/migrations/0001_initial.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/migrations copying oauth2_provider/migrations/__init__.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/migrations creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/south_migrations copying oauth2_provider/south_migrations/0001_initial.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/south_migrations copying oauth2_provider/south_migrations/0002_adding_indexes.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/south_migrations copying oauth2_provider/south_migrations/0003_auto__add_field_application_skip_authorization__chg_field_accesstoken_.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/south_migrations copying oauth2_provider/south_migrations/__init__.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/south_migrations creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/__init__.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/models.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/settings.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_application_views.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_auth_backends.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_authorization_code.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_client_credential.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_decorators.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_generator.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_implicit.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_mixins.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_models.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_oauth2_backends.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_oauth2_validators.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_password.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_rest_framework.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_scopes.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_token_revocation.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_utils.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/test_validators.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests copying oauth2_provider/tests/urls.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/tests creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/views copying oauth2_provider/views/__init__.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/views copying oauth2_provider/views/application.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/views copying oauth2_provider/views/base.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/views copying oauth2_provider/views/generic.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/views copying oauth2_provider/views/mixins.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/views creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/ext/rest_framework copying oauth2_provider/ext/rest_framework/__init__.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/ext/rest_framework copying oauth2_provider/ext/rest_framework/authentication.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/ext/rest_framework copying oauth2_provider/ext/rest_framework/permissions.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/ext/rest_framework running egg_info creating django_oauth_toolkit.egg-info writing requirements to django_oauth_toolkit.egg-info/requires.txt writing django_oauth_toolkit.egg-info/PKG-INFO writing top-level names to django_oauth_toolkit.egg-info/top_level.txt writing dependency_links to django_oauth_toolkit.egg-info/dependency_links.txt writing manifest file 'django_oauth_toolkit.egg-info/SOURCES.txt' reading manifest file 'django_oauth_toolkit.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'django_oauth_toolkit.egg-info/SOURCES.txt' creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/templates copying oauth2_provider/templates/404.html -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/templates creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/templates/oauth2_provider copying oauth2_provider/templates/oauth2_provider/application_confirm_delete.html -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/templates/oauth2_provider copying oauth2_provider/templates/oauth2_provider/application_detail.html -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/templates/oauth2_provider copying oauth2_provider/templates/oauth2_provider/application_form.html -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/templates/oauth2_provider copying oauth2_provider/templates/oauth2_provider/application_list.html -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/templates/oauth2_provider copying oauth2_provider/templates/oauth2_provider/application_registration_form.html -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/templates/oauth2_provider copying oauth2_provider/templates/oauth2_provider/authorize.html -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/templates/oauth2_provider copying oauth2_provider/templates/oauth2_provider/base.html -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_2.7/build/oauth2_provider/templates/oauth2_provider I: pybuild base:170: /usr/bin/python3 setup.py build running build running build_py creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider copying oauth2_provider/__init__.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider copying oauth2_provider/admin.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider copying oauth2_provider/backends.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider copying oauth2_provider/compat.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider copying oauth2_provider/decorators.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider copying oauth2_provider/exceptions.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider copying oauth2_provider/forms.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider copying oauth2_provider/generators.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider copying oauth2_provider/http.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider copying oauth2_provider/middleware.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider copying oauth2_provider/models.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider copying oauth2_provider/oauth2_backends.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider copying oauth2_provider/oauth2_validators.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider copying oauth2_provider/settings.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider copying oauth2_provider/urls.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider copying oauth2_provider/validators.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/ext copying oauth2_provider/ext/__init__.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/ext creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/migrations copying oauth2_provider/migrations/0001_initial.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/migrations copying oauth2_provider/migrations/__init__.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/migrations creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/south_migrations copying oauth2_provider/south_migrations/0001_initial.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/south_migrations copying oauth2_provider/south_migrations/0002_adding_indexes.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/south_migrations copying oauth2_provider/south_migrations/0003_auto__add_field_application_skip_authorization__chg_field_accesstoken_.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/south_migrations copying oauth2_provider/south_migrations/__init__.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/south_migrations creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/__init__.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/models.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/settings.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_application_views.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_auth_backends.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_authorization_code.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_client_credential.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_decorators.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_generator.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_implicit.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_mixins.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_models.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_oauth2_backends.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_oauth2_validators.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_password.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_rest_framework.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_scopes.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_token_revocation.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_utils.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/test_validators.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests copying oauth2_provider/tests/urls.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/tests creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/views copying oauth2_provider/views/__init__.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/views copying oauth2_provider/views/application.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/views copying oauth2_provider/views/base.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/views copying oauth2_provider/views/generic.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/views copying oauth2_provider/views/mixins.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/views creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/ext/rest_framework copying oauth2_provider/ext/rest_framework/__init__.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/ext/rest_framework copying oauth2_provider/ext/rest_framework/authentication.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/ext/rest_framework copying oauth2_provider/ext/rest_framework/permissions.py -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/ext/rest_framework running egg_info writing requirements to django_oauth_toolkit.egg-info/requires.txt writing django_oauth_toolkit.egg-info/PKG-INFO writing top-level names to django_oauth_toolkit.egg-info/top_level.txt writing dependency_links to django_oauth_toolkit.egg-info/dependency_links.txt reading manifest file 'django_oauth_toolkit.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'django_oauth_toolkit.egg-info/SOURCES.txt' creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/templates copying oauth2_provider/templates/404.html -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/templates creating /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/templates/oauth2_provider copying oauth2_provider/templates/oauth2_provider/application_confirm_delete.html -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/templates/oauth2_provider copying oauth2_provider/templates/oauth2_provider/application_detail.html -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/templates/oauth2_provider copying oauth2_provider/templates/oauth2_provider/application_form.html -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/templates/oauth2_provider copying oauth2_provider/templates/oauth2_provider/application_list.html -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/templates/oauth2_provider copying oauth2_provider/templates/oauth2_provider/application_registration_form.html -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/templates/oauth2_provider copying oauth2_provider/templates/oauth2_provider/authorize.html -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/templates/oauth2_provider copying oauth2_provider/templates/oauth2_provider/base.html -> /django-oauth-toolkit-0.8.1/.pybuild/pythonX.Y_3.4/build/oauth2_provider/templates/oauth2_provider debian/rules override_dh_auto_test make[1]: Entering directory '/django-oauth-toolkit-0.8.1' PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} runtests.py" dh_auto_test I: pybuild base:170: python2.7 runtests.py ............E.EE.EEEEEEEEEEEEE..................F.EEEEE............................................EEE........EE.EE.EEEE..E.E..E..... ====================================================================== ERROR: test_resource_access_allowed (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeProtectedResource) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 930, in test_resource_access_allowed response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_basic_auth (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 479, in test_basic_auth response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_basic_auth_bad_authcode (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 656, in test_basic_auth_bad_authcode response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_basic_auth_bad_secret (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 708, in test_basic_auth_bad_secret response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_basic_auth_grant_expired (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 691, in test_basic_auth_grant_expired response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_basic_auth_wrong_auth_type (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 730, in test_basic_auth_wrong_auth_type response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 169, in authenticate_client authenticated = self._authenticate_request_body(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 95, in _authenticate_request_body client_secret = request.client_secret File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: client_secret ====================================================================== ERROR: test_code_exchange_fails_when_redirect_uri_does_not_match (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 864, in test_code_exchange_fails_when_redirect_uri_does_not_match response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_code_exchange_succeed_when_redirect_uri_match (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 829, in test_code_exchange_succeed_when_redirect_uri_match response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_code_exchange_succeed_when_redirect_uri_match_with_multiple_query_params (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 896, in test_code_exchange_succeed_when_redirect_uri_match_with_multiple_query_params response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_malicious_redirect_uri (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 799, in test_malicious_redirect_uri response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 358, in validate_token_request if self.request_validator.client_authentication_required(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 146, in client_authentication_required if request.client_id and request.client_secret: File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: client_secret ====================================================================== ERROR: test_public (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 773, in test_public response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 358, in validate_token_request if self.request_validator.client_authentication_required(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 146, in client_authentication_required if request.client_id and request.client_secret: File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: client_secret ====================================================================== ERROR: test_refresh (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 501, in test_refresh response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_refresh_bad_scopes (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 573, in test_refresh_bad_scopes response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_refresh_fail_repeating_requests (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 599, in test_refresh_fail_repeating_requests response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_refresh_no_scopes (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 545, in test_refresh_no_scopes response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_refresh_repeating_requests_non_rotating_tokens (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 627, in test_refresh_repeating_requests_non_rotating_tokens response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_client_credential_access_allowed (oauth2_provider.tests.test_client_credential.TestClientCredential) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_client_credential.py", line 67, in test_client_credential_access_allowed response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py", line 75, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py", line 99, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_client_credential_does_not_issue_refresh_token (oauth2_provider.tests.test_client_credential.TestClientCredential) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_client_credential.py", line 90, in test_client_credential_does_not_issue_refresh_token response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py", line 75, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py", line 99, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_client_credential_user_is_none_on_access_token (oauth2_provider.tests.test_client_credential.TestClientCredential) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_client_credential.py", line 100, in test_client_credential_user_is_none_on_access_token response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py", line 75, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py", line 99, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_client_resource_password_based (oauth2_provider.tests.test_client_credential.TestClientResourcePasswordBased) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_client_credential.py", line 170, in test_client_resource_password_based response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py", line 101, in create_token_response if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_extended_request (oauth2_provider.tests.test_client_credential.TestExtendedRequest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_client_credential.py", line 125, in test_extended_request response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py", line 75, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py", line 99, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_password_resource_access_allowed (oauth2_provider.tests.test_password.TestPasswordProtectedResource) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_password.py", line 91, in test_password_resource_access_allowed response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py", line 101, in create_token_response if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_bad_credentials (oauth2_provider.tests.test_password.TestPasswordTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_password.py", line 78, in test_bad_credentials response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py", line 101, in create_token_response if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_get_token (oauth2_provider.tests.test_password.TestPasswordTokenView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_password.py", line 59, in test_get_token response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py", line 101, in create_token_response if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_has_read_scope (oauth2_provider.tests.test_scopes.TestReadWriteScope) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_scopes.py", line 405, in test_has_read_scope access_token = self.get_access_token('read') File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_scopes.py", line 374, in get_access_token response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_has_write_scope (oauth2_provider.tests.test_scopes.TestReadWriteScope) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_scopes.py", line 433, in test_has_write_scope access_token = self.get_access_token('write') File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_scopes.py", line 374, in get_access_token response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_no_read_scope (oauth2_provider.tests.test_scopes.TestReadWriteScope) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_scopes.py", line 419, in test_no_read_scope access_token = self.get_access_token('scope1') File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_scopes.py", line 374, in get_access_token response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_no_write_scope (oauth2_provider.tests.test_scopes.TestReadWriteScope) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_scopes.py", line 447, in test_no_write_scope access_token = self.get_access_token('scope1') File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_scopes.py", line 374, in get_access_token response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_multi_scope_fail (oauth2_provider.tests.test_scopes.TestScopesProtection) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_scopes.py", line 291, in test_multi_scope_fail response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_multi_scope_valid (oauth2_provider.tests.test_scopes.TestScopesProtection) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_scopes.py", line 333, in test_multi_scope_valid response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_scopes_protection_fail (oauth2_provider.tests.test_scopes.TestScopesProtection) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_scopes.py", line 249, in test_scopes_protection_fail response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_scopes_protection_valid (oauth2_provider.tests.test_scopes.TestScopesProtection) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_scopes.py", line 207, in test_scopes_protection_valid response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_scopes_save_in_access_token (oauth2_provider.tests.test_scopes.TestScopesSave) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_scopes.py", line 171, in test_scopes_save_in_access_token response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post url, headers, body, status = self.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response return core.create_token_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response request, self.default_token_type) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response self.validate_token_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request if not self.request_validator.authenticate_client(request): File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client authenticated = self._authenticate_basic_auth(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth encoding = request.encoding or 'utf-8' File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: encoding ====================================================================== ERROR: test_revoke_access_token (oauth2_provider.tests.test_token_revocation.TestRevocationView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_token_revocation.py", line 58, in test_revoke_access_token response = self.client.post(url) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 186, in post url, headers, body, status = self.create_revocation_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 134, in create_revocation_response return core.create_revocation_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 121, in create_revocation_response uri, http_method, body, headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/revocation.py", line 65, in create_revocation_response self.validate_revocation_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/revocation.py", line 127, in validate_revocation_request if (request.token_type_hint and File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: token_type_hint ====================================================================== ERROR: test_revoke_refresh_token (oauth2_provider.tests.test_token_revocation.TestRevocationView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_token_revocation.py", line 118, in test_revoke_refresh_token response = self.client.post(url) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post secure=secure, **extra) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic return self.request(**r) File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request six.reraise(*exc_info) File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper return bound_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch return super(CsrfExemptMixin, self).dispatch(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 186, in post url, headers, body, status = self.create_revocation_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 134, in create_revocation_response return core.create_revocation_response(request) File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 121, in create_revocation_response uri, http_method, body, headers) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper return f(endpoint, uri, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/revocation.py", line 65, in create_revocation_response self.validate_revocation_request(request) File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/revocation.py", line 127, in validate_revocation_request if (request.token_type_hint and File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__ raise AttributeError(name) AttributeError: token_type_hint ====================================================================== FAIL: test_pre_auth_wrong_response_type (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeView) ---------------------------------------------------------------------- Traceback (most recent call last): File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 266, in test_pre_auth_wrong_response_type self.assertIn("error=unauthorized_client", response['Location']) AssertionError: u'error=unauthorized_client' not found in 'http://localhost?error=unsupported_response_type' ---------------------------------------------------------------------- Ran 133 tests in 13.416s FAILED (failures=1, errors=35) Creating test database for alias 'default'... Destroying test database for alias 'default'... E: pybuild pybuild:262: test: plugin custom failed with: exit code=1: python2.7 runtests.py dh_auto_test: pybuild --test -i python{version} -p 2.7 --dir . returned exit code 13 debian/rules:15: recipe for target 'override_dh_auto_test' failed make[1]: *** [override_dh_auto_test] Error 25 make[1]: Leaving directory '/django-oauth-toolkit-0.8.1' debian/rules:9: recipe for target 'build' failed make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2