def test_can_not_be_the_child_of_a_forum_link(self): # Run & check for forum_type, _ in Forum.TYPE_CHOICES: with pytest.raises(ValidationError): forum = build_link_forum(parent=self.top_level_link) forum.full_clean()
def test_can_not_be_the_child_of_a_forum_link(self): # Run & check for forum_type, _ in Forum.TYPE_CHOICES: with pytest.raises(ValidationError): forum = build_link_forum(parent=self.top_level_link) forum.full_clean()