aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/testing.md
diff options
context:
space:
mode:
authorTom Christie2014-11-25 15:52:36 +0000
committerTom Christie2014-11-25 15:52:36 +0000
commitd7f8047addaea10b0f629e064a3826e7531d8040 (patch)
tree9bd27d74390b313bd1b84a9853531e5814ea24e5 /docs/api-guide/testing.md
parent64d8e3dcb6846610e1908e067962b0c8457a86f8 (diff)
parent66fc51de5c4622073e7e6cfd12cc7c4a1a8ba60c (diff)
downloaddjango-rest-framework-d7f8047addaea10b0f629e064a3826e7531d8040.tar.bz2
Merge branch 'mkdocs' of git://github.com/d0ugal/django-rest-framework into d0ugal-mkdocs
Diffstat (limited to 'docs/api-guide/testing.md')
-rw-r--r--docs/api-guide/testing.md6
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):