def setToolBarArea(self, area, tool_bar):
        curr = self.toolBarArea(tool_bar)
        if curr != Qt.NoToolBarArea:
            if curr != area:
                visible = tool_bar.isVisible()
                floating = tool_bar.isFloating()
                tool_bar.setVisible(False)
                self.removeToolBar(tool_bar)
                self.addToolBar(area, tool_bar)
                tool_bar.resize(tool_bar.sizeHint())
                tool_bar.setFloating(floating)
                tool_bar.setVisible(visible)
decode and test against known data
dataset/ETHPy150Open nucleic/enaml/enaml/qt/qt_main_window.py/QCustomMainWindow.setToolBarArea--crossover with--dataset/ETHPy150Open Exa-Networks/exabgp/qa/tests/l2pnv_test.py/TestL2VPN.test_l2vpn_decode