def finalize(): category_delete(cat1, cat2)
def test_category_delete(tree_categories, root_category): """check that it's impossible to remove the `root` category""" category_delete(root_category) assert Category.objects.count() == 5