def test_delete_signal_creates_confirmation_dialogs(self):
        self.xld_main_window.destroy()
        GTKGUITestHelper.refresh_gui()

        save_vocables_dialog_displayed = False
        for window in GTKGUITestHelper.get_window_list():
            if window.get_name() == 'Confirm Save Vocables':
                print('The window has been found!')
                save_vocables_dialog_displayed = True
                break
        assert save_vocables_dialog_displayed, 'The save vocables on exit confirmation dialog is not displayed.'
    def test_xldmainwindow_children_widgets_exist(self):
        widgets = GTKGUITestHelper.get_all_descendants(self.xld_main_window)

        xld_menu_bar = GTKGUITestHelper.get_widget_by_name_from_list(widgets, 'xld_menu_bar')
        assert xld_menu_bar is not None, \
            'The ' + XLDMainWindow.__name__ + ' does not have a ' + Gtk.MenuBar.__name__ + ' descendant.'
        assert xld_menu_bar.is_visible(), \
            'The ' + XLDMainWindow.__name__ + ' does not have a visible ' + Gtk.MenuBar.__name__ + ' descendant.'

        notebook = GTKGUITestHelper.get_widget_by_name_from_list(widgets, 'notebook')
        assert notebook is not None, \
            'The ' + XLDMainWindow.__name__ + ' does not have a ' + Gtk.Notebook.__name__ + ' descendant.'
        assert notebook.is_visible(), \
            'The ' + XLDMainWindow.__name__ + ' does not have a visible ' + Gtk.Notebook.__name__ + ' descendant.'

        big_character_box = GTKGUITestHelper.get_widget_by_name_from_list(widgets, 'big_character_box')
        assert big_character_box is not None, \
            'The ' + XLDMainWindow.__name__ + ' does not have a ' + BigCharacterBox.__name__ + ' descendant.'
        assert big_character_box.is_visible(), \
            'The ' + XLDMainWindow.__name__ + ' does not have a visible ' + BigCharacterBox.__name__ + ' descendant.'
 def create_xld_main_window(self):
     AppSettings.load_settings()  # TODO: use test settings
     VocableManager.load_vocables()  # TODO: use text vocables
     self.xld_main_window = XLDMainWindow()
     self.xld_main_window.show_all()
     GTKGUITestHelper.refresh_gui()