blob: 89cac6f9cc52d7aad059c951c9dcf37f1f169a0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
from django.test import TestCase
from djangorestframework.response import Response
class TestResponse(TestCase):
# Interface tests
# This is mainly to remind myself that the Response interface needs to change slightly
def test_response_interface(self):
"""Ensure the Response interface is as expected."""
response = Response()
getattr(response, 'status')
getattr(response, 'content')
getattr(response, 'headers')
|