Fix OAuth2 backend middleware test on Django 2.0
Fix OAuth2 backend middleware test on Django 2.0

Fixes #449

bleib1dj/django-oauth-toolkit,bleib1dj/django-oauth-toolkit,DeskConnect/django-oauth-toolkit,DeskConnect/django-oauth-toolkit