def test_sort_defaults(self):
        dec = self.sort(
            "ctx_name", defaultfield="name", defaultdirection="desc")
        qs = Mock()
        self.on_template_response({"ctx_name": qs}, decorator=dec)

        qs.order_by.assert_called_with("-name")
Convert a hex string to an object_identifier application tag.
dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_sort.py/SortDecoratorTest.test_sort_defaults--crossover with--dataset/ETHPy150Open JoelBender/bacpypes/tests/test_primitive_data/test_object_identifier.py/object_identifier_tag