def test_rebuild(self, _init_pygame, default_ui_manager,
                     _display_surface_return_none):
        confirm_dialog = UIConfirmationDialog(rect=pygame.Rect(100, 100, 400, 300),
                                              manager=default_ui_manager,
                                              action_long_desc="Confirm a test of the "
                                                               "confirmation dialog.",
                                              window_title="Confirm",
                                              action_short_name="Confirm")

        confirm_dialog.rebuild()

        assert confirm_dialog.image is not None
    def test_rebuild_rounded_rectangle(self, _init_pygame, default_ui_manager,
                                       _display_surface_return_none):
        confirm_dialog = UIConfirmationDialog(rect=pygame.Rect(100, 100, 400, 300),
                                              manager=default_ui_manager,
                                              action_long_desc="Confirm a test of the confirmation "
                                                               "dialog.",
                                              window_title="Confirm",
                                              action_short_name="Confirm")

        confirm_dialog.shape_corner_radius = 15
        confirm_dialog.shape = 'rounded_rectangle'
        confirm_dialog.rebuild()

        assert confirm_dialog.image is not None