mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-29 17:39:48 +03:00
Fixup whitespace issue
This commit is contained in:
parent
6a8575b042
commit
3b81bc7d76
|
@ -20,13 +20,13 @@ The full set of HTTP status codes included in the `status` module is listed belo
|
||||||
The module also includes a set of helper functions for testing if a status code is in a given range.
|
The module also includes a set of helper functions for testing if a status code is in a given range.
|
||||||
|
|
||||||
from rest_framework import status
|
from rest_framework import status
|
||||||
from rest_framework.test import APITestCase
|
from rest_framework.test import APITestCase
|
||||||
|
|
||||||
class ExampleTestCase(APITestCase):
|
class ExampleTestCase(APITestCase):
|
||||||
def test_url_root(self):
|
def test_url_root(self):
|
||||||
url = reverse('index')
|
url = reverse('index')
|
||||||
response = self.client.get(url)
|
response = self.client.get(url)
|
||||||
self.assertTrue(status.is_success(response.status_code))
|
self.assertTrue(status.is_success(response.status_code))
|
||||||
|
|
||||||
|
|
||||||
For more information on proper usage of HTTP status codes see [RFC 2616][rfc2616]
|
For more information on proper usage of HTTP status codes see [RFC 2616][rfc2616]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user