aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_testing.py
diff options
context:
space:
mode:
authorTom Christie2014-08-19 13:28:07 +0100
committerTom Christie2014-08-19 13:28:07 +0100
commitbf09c32de8f9d528f83e9cb7a2773d1f4c9ab563 (patch)
tree334c85c136fe1dc010f8d7860b9431b3a9d87e56 /tests/test_testing.py
parente385a7b8eb6e538698f28128e43fe8bfaefd4e97 (diff)
downloaddjango-rest-framework-bf09c32de8f9d528f83e9cb7a2773d1f4c9ab563.tar.bz2
Code linting and added runtests.py
Diffstat (limited to 'tests/test_testing.py')
-rw-r--r--tests/test_testing.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_testing.py b/tests/test_testing.py
index 1b126e00..9c472026 100644
--- a/tests/test_testing.py
+++ b/tests/test_testing.py
@@ -28,7 +28,8 @@ def session_view(request):
})
-urlpatterns = patterns('',
+urlpatterns = patterns(
+ '',
url(r'^view/$', view),
url(r'^session-view/$', session_view),
)
@@ -142,7 +143,8 @@ class TestAPIRequestFactory(TestCase):
assertion error.
"""
factory = APIRequestFactory()
- self.assertRaises(AssertionError, factory.post,
+ self.assertRaises(
+ AssertionError, factory.post,
path='/view/', data={'example': 1}, format='xml'
)