def METHOD_NAME(self):
    with _select_database_items_dialog(None, None) as dialog:
        self.assertEqual(dialog._ui.warning_label.text(), "")
        dialog._item_check_boxes_widget._item_check_boxes["metadata"].setChecked(True)
        self.assertEqual(dialog._ui.warning_label.text(), "Warning! Structural data items selected.")