def test_category_cannot_be_the_child_of_another_category(self): # Run & check with pytest.raises(ValidationError): cat = build_category_forum(parent=self.top_level_cat) cat.full_clean()
def test_category_cannot_be_the_child_of_another_category(self): # Run & check with pytest.raises(ValidationError): cat = build_category_forum(parent=self.top_level_cat) cat.full_clean()