Add tests for BasicAuthentication and TokenAuthentication (#4837)
Add tests for BasicAuthentication and TokenAuthentication (#4837)

* Add tests for BasicAuthentication

* Add tests for Token authentication

* Adjust test to pass on Django 1.8

linovia/django-rest-framework,ossanna16/django-rest-framework,tomchristie/django-rest-framework,davesque/django-rest-framework,linovia/django-rest-framework,ossanna16/django-rest-framework,jpadilla/django-rest-framework,tomchristie/django-rest-framework,jpadilla/django-rest-framework,tomchristie/django-rest-framework,atombrella/django-rest-framework,edx/django-rest-framework,jpadilla/django-rest-framework,davesque/django-rest-framework,ossanna16/django-rest-framework,atombrella/django-rest-framework,atombrella/django-rest-framework,linovia/django-rest-framework,kgeorgy/django-rest-framework,dmwyatt/django-rest-framework,kgeorgy/django-rest-framework,dmwyatt/django-rest-framework,kgeorgy/django-rest-framework,davesque/django-rest-framework,dmwyatt/django-rest-framework,edx/django-rest-framework,edx/django-rest-framework