def test_sort_object_in_context(self):
        req = RequestFactory().get(
            "/a/url", {"sortfield": "name", "sortdirection": "desc"})
        res = self.on_template_response({"ctx_name": Mock()}, request=req)

        sort = res.context_data["sort"]
        self.assertEqual(sort.field, "name")
        self.assertEqual(sort.direction, "desc")
Deserialize ``s`` (a ``str`` or ``unicode`` instance containing a JSON
dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_sort.py/SortDecoratorTest.test_sort_object_in_context--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/simplejson/simplejson/__init__.py/loads