def test_topic_publish_invalid_removed_subcategory(self):
        category = utils.create_category()
        subcategory = utils.create_subcategory(category, is_removed=True)
        form_data = {'comment': 'foo', 'title': 'foobar',
                     'category': subcategory.pk}
        form = TopicForm(self.user, data=form_data)
        self.assertEqual(form.is_valid(), False)
        self.assertNotIn('category', form.cleaned_data)
invalid removed subcategory
dataset/ETHPy150Open nitely/Spirit/spirit/topic/tests.py/TopicFormTest.test_topic_publish_invalid_removed_subcategory