Clean up test slightly. Refs #552

This commit is contained in:
Tom Christie 2013-01-07 21:37:44 +00:00
parent 31b585f26a
commit 4e8f55887d

View File

@ -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):