2011-02-19 13:47:26 +03:00
|
|
|
# Right now we expect this test to fail - I'm just going to leave it commented out.
|
|
|
|
# Looking forward to actually being able to raise ExpectedFailure sometime!
|
|
|
|
#
|
|
|
|
#from django.test import TestCase
|
|
|
|
#from djangorestframework.response import Response
|
|
|
|
#
|
|
|
|
#
|
2011-12-13 17:48:33 +04:00
|
|
|
#class TestResponse(TestCase):
|
2011-02-19 13:47:26 +03:00
|
|
|
#
|
|
|
|
# # 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')
|
2011-02-05 00:52:21 +03:00
|
|
|
|