示例#1
0
 def finalize():
     category_delete(cat1, cat2)
示例#2
0
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