aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/pagination.py
diff options
context:
space:
mode:
authorTom Christie2013-01-07 21:37:44 +0000
committerTom Christie2013-01-07 21:37:44 +0000
commit4e8f55887d6ce86a2293f8b8cbb255bc58995336 (patch)
tree737810ba4230bc3a5daedb49696c93d8ea49f0f2 /rest_framework/tests/pagination.py
parent31b585f26a8fc72e5b527b7672c7691e374dc494 (diff)
downloaddjango-rest-framework-4e8f55887d6ce86a2293f8b8cbb255bc58995336.tar.bz2
Clean up test slightly. Refs #552
Diffstat (limited to 'rest_framework/tests/pagination.py')
-rw-r--r--rest_framework/tests/pagination.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/tests/pagination.py b/rest_framework/tests/pagination.py
index 81d297a1..3b550877 100644
--- a/rest_framework/tests/pagination.py
+++ b/rest_framework/tests/pagination.py
@@ -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):