def test_window_force_deleted_correctly(self): ws = CreateSampleWorkspace() p = MatrixWorkspaceDisplay(ws) self.assert_window_created() p.force_close() self.assert_window_created() QApplication.processEvents() self.assertEqual(None, p.ads_observer) self.find_qt_widget("work") self.assert_no_widgets()
def test_window_force_deleted_correctly(self): ws = CreateSampleWorkspace() p = MatrixWorkspaceDisplay(ws) self.assert_widget_created() p.force_close() self.assert_widget_created() QApplication.sendPostedEvents() self.assertEqual(None, p.ads_observer) self.assert_widget_not_present("work") self.assert_no_toplevel_widgets()
def test_window_force_deleted_correctly(self): ws = CreateSampleWorkspace() p = MatrixWorkspaceDisplay(ws) self.assert_widget_created() p.force_close() self.assert_widget_created() QApplication.processEvents() self.assertEqual(None, p.ads_observer) self.assert_widget_not_present("work") self.assert_no_toplevel_widgets()