mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-09-22 11:59:04 +03:00
17 lines
471 B
Python
17 lines
471 B
Python
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')
|
|
|