def insert_action(self, action, prev_action):
        if isinstance(prev_action, QtWidgets.QAction):
            index = self._actions.index(prev_action)
        else:
            index = prev_action
        action.setShortcutContext(QtCore.Qt.WidgetShortcut)
        self._actions.insert(index, action)
Test that non-default namespaces make it through the parse-serialize
dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/pyqode/core/api/code_edit.py/CodeEdit.insert_action--crossover with--dataset/ETHPy150Open STIXProject/python-stix/stix/test/utils/nsparser_test.py/NamespaceInfoTests.test_parsed_namespaces