mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-18 20:41:04 +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.
|
Ensure context gets passed through to the object serializer.
|
||||||
"""
|
"""
|
||||||
serializer = PassOnContextPaginationSerializer(self.first_page)
|
serializer = PassOnContextPaginationSerializer(self.first_page, context={'foo': 'bar'})
|
||||||
serializer.data
|
serializer.data
|
||||||
results = serializer.fields[serializer.results_field]
|
results = serializer.fields[serializer.results_field]
|
||||||
self.assertTrue(serializer.context is results.context)
|
self.assertEquals(serializer.context, results.context)
|
||||||
|
|
||||||
|
|
||||||
class TestUnpaginated(TestCase):
|
class TestUnpaginated(TestCase):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user