def METHOD_NAME(self):
    root = RootProjectTreeItem()
    model = ProjectItemModel(root)
    category = CategoryProjectTreeItem("category", "category description")
    model.insert_item(category)
    category_index = model.find_category("category")
    mock_project_item = NonCallableMagicMock()
    mock_project_item.name = "project item"
    mock_project_item.description = "project item description"
    leaf = LeafProjectTreeItem(mock_project_item)
    model.insert_item(leaf, category_index)
    self.assertEqual(model.rowCount(), 1)
    self.assertEqual(model.rowCount(category_index), 1)
    self.assertEqual(model.n_items(), 1)
    self.assertEqual(model.items("category"), [leaf])