def test_ordering_with_overridden_field_name(self):
        class F(FilterSet):
            order_by_field = 'order'

            class Meta:
                model = User
                fields = ['username', 'status']
                order_by = ['status']

        f = F({'order': 'status'}, queryset=self.qs)
        self.assertQuerysetEqual(
            f.qs, ['carl', 'alex', 'jacob', 'aaron'], lambda o: o.username)
Test the `exec` example.
dataset/ETHPy150Open carltongibson/django-filter/tests/test_filterset.py/FilterSetOrderingTests.test_ordering_with_overridden_field_name--crossover with--dataset/ETHPy150Open openstack/bandit/tests/functional/test_functional.py/FunctionalTests.test_exec