Exemplo n.º 1
0
 def finalize():
     category_delete(cat1, cat2)
Exemplo n.º 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