def test_default_order_reverse(self):
        data = {"city": "N"}
        view = setup_view(
            views.FilteredListView(
                model=self.QueryModel,
                form_class=self.Form,
                default_order='-last_name'),
            RequestFactory().get('/fake', data))

        view.form.is_valid()
        queryset = view.form_valid(view.form)
        self.assertEqual(queryset.query.order_by, ['-last_name'])
Returns the value bound to a name in the interpreter's namespace.
dataset/ETHPy150Open peopledoc/django-generic-filters/django_genericfilters/tests/views.py/FilteredViewTestCase.test_default_order_reverse--crossover with--dataset/ETHPy150Open enthought/envisage/envisage/plugins/ipython_shell/view/ipython_shell_view.py/IPythonShellView.lookup