def METHOD_NAME(self):
    with TemporaryDirectory() as project_dir:
        toolbox, item = self._category_item(project_dir)
        self.assertEqual(item.flags(), Qt.ItemIsEnabled)
        clean_up_toolbox(toolbox)