Ejemplo n.º 1
0
 def test_construction(self, mock_qappthread):
     mock_qappthread.return_value = mock_qappthread
     fig = MagicMock()
     canvas = FigureCanvasQTAgg(fig)
     fig_mgr = FigureManagerWorkbench(canvas, 1)
     self.assertNotEqual(fig_mgr, None)
Ejemplo n.º 2
0
 def test_window_title(self, mock_qappthread):
     mock_qappthread.return_value = mock_qappthread
     fig = MagicMock()
     canvas = FigureCanvasQTAgg(fig)
     fig_mgr = FigureManagerWorkbench(canvas, 1)
     self.assertEqual(fig_mgr.get_window_title(), "Figure 1")