'Asserts dialog with specified message is shown'

def _should_see_dialog(self, dialog_type, dialog_message):

    self.page.modal_dialog_visible(dialog_type)
    self.assertIn(dialog_message, self.page.modal_dialog_text(dialog_type))
