diff options
| author | BrickXu | 2014-12-02 12:52:36 +0800 |
|---|---|---|
| committer | BrickXu | 2014-12-02 12:52:36 +0800 |
| commit | 81870b6e1a7b0c3c149d4bfba0e20924ebf1b187 (patch) | |
| tree | 4acb295a3c941db00b36f54f906d4e4e24e5bcf4 /docs/api-guide/testing.md | |
| parent | 71654967325ff5c587ce37031109152e741786ee (diff) | |
| parent | d1fe61ce94af1e942f8d1026fb84b1909c230779 (diff) | |
| download | django-rest-framework-81870b6e1a7b0c3c149d4bfba0e20924ebf1b187.tar.bz2 | |
Merge pull request #2 from tomchristie/master
Merge upstream
Diffstat (limited to 'docs/api-guide/testing.md')
| -rw-r--r-- | docs/api-guide/testing.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/api-guide/testing.md b/docs/api-guide/testing.md index 72c33961..d059fdab 100644 --- a/docs/api-guide/testing.md +++ b/docs/api-guide/testing.md @@ -1,4 +1,4 @@ -<a class="github" href="test.py"></a> +source: test.py # Testing @@ -170,7 +170,7 @@ This can be a useful shortcut if you're testing the API but don't want to have t To unauthenticate subsequent requests, call `force_authenticate` setting the user and/or token to `None`. - client.force_authenticate(user=None) + client.force_authenticate(user=None) ## CSRF validation @@ -197,7 +197,7 @@ You can use any of REST framework's test case classes as you would for the regul from django.core.urlresolvers import reverse from rest_framework import status - from rest_framework.test import APITestCase + from rest_framework.test import APITestCase class AccountTests(APITestCase): def test_create_account(self): |
