def print_click(self, edit, position, text, callback, *args):
        assert(callback)
        insert_length = self.insert(edit, position, text)

        insert_before = 0
        new_region = sublime.Region(position, position + insert_length)
        regions = self.view.get_regions('swi_log_clicks')
        for region in regions:
            if new_region.b < region.a:
                break
            insert_before += 1

        self.callbacks.insert(insert_before, { "callback": callback, "args": args })

        regions.append(new_region)
        self.view.add_regions('swi_log_clicks', regions, scope=utils.get_setting('interactive_scope'), flags=sublime.DRAW_NO_FILL)
Test to ensure the HTTP METHOD can be set to accept all on the fly
dataset/ETHPy150Open sokolovstas/SublimeWebInspector/views.py/SwiDebugView.print_click--crossover with--dataset/ETHPy150Open timothycrosley/hug/tests/test_routing.py/TestURLRouter.test_call