mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Clean up test slightly. Refs #552
This commit is contained in:
parent
31b585f26a
commit
4e8f55887d
|
@ -181,10 +181,10 @@ class UnitTestPagination(TestCase):
|
|||
"""
|
||||
Ensure context gets passed through to the object serializer.
|
||||
"""
|
||||
serializer = PassOnContextPaginationSerializer(self.first_page)
|
||||
serializer = PassOnContextPaginationSerializer(self.first_page, context={'foo': 'bar'})
|
||||
serializer.data
|
||||
results = serializer.fields[serializer.results_field]
|
||||
self.assertTrue(serializer.context is results.context)
|
||||
self.assertEquals(serializer.context, results.context)
|
||||
|
||||
|
||||
class TestUnpaginated(TestCase):
|
||||
|
|
Loading…
Reference in New Issue
Block a user