def test_can_not_be_associated_with_a_forum_link_or_a_forum_category(self):
     # Setup
     top_level_cat = create_category_forum()
     top_level_link = create_link_forum()
     # Run & check
     with pytest.raises(ValidationError):
         new_topic = build_topic(forum=top_level_cat, poster=self.u1)
         new_topic.full_clean()
     with pytest.raises(ValidationError):
         new_topic = build_topic(forum=top_level_link, poster=self.u1)
         new_topic.full_clean()
 def test_can_not_be_associated_with_a_forum_link_or_a_forum_category(self):
     # Setup
     top_level_cat = create_category_forum()
     top_level_link = create_link_forum()
     # Run & check
     with pytest.raises(ValidationError):
         new_topic = build_topic(forum=top_level_cat, poster=self.u1)
         new_topic.full_clean()
     with pytest.raises(ValidationError):
         new_topic = build_topic(forum=top_level_link, poster=self.u1)
         new_topic.full_clean()