aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_routers.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_routers.py
parente385a7b8eb6e538698f28128e43fe8bfaefd4e97 (diff)
downloaddjango-rest-framework-bf09c32de8f9d528f83e9cb7a2773d1f4c9ab563.tar.bz2
Code linting and added runtests.py
Diffstat (limited to 'tests/test_routers.py')
-rw-r--r--tests/test_routers.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_routers.py b/tests/test_routers.py
index 381569bd..b076f134 100644
--- a/tests/test_routers.py
+++ b/tests/test_routers.py
@@ -93,7 +93,8 @@ class TestCustomLookupFields(TestCase):
from tests import test_routers
urls = getattr(test_routers, 'urlpatterns')
- urls += patterns('',
+ urls += patterns(
+ '',
url(r'^', include(self.router.urls)),
)
@@ -104,7 +105,8 @@ class TestCustomLookupFields(TestCase):
def test_retrieve_lookup_field_list_view(self):
response = self.client.get('/notes/')
- self.assertEqual(response.data,
+ self.assertEqual(
+ response.data,
[{
"url": "http://testserver/notes/123/",
"uuid": "123", "text": "foo bar"
@@ -113,7 +115,8 @@ class TestCustomLookupFields(TestCase):
def test_retrieve_lookup_field_detail_view(self):
response = self.client.get('/notes/123/')
- self.assertEqual(response.data,
+ self.assertEqual(
+ response.data,
{
"url": "http://testserver/notes/123/",
"uuid": "123", "text": "foo bar"