def test_delete_campaign_report_item(self):
def handler(context, **kwarg):
del(context['tabs_layout']['Other'])
make_campaign_report.connect(handler)
# test
content = self.get()
self.assertNotIn('<a href="#other" aria-controls="other" '
'role="tab" data-toggle="tab">Other</a>', content)
self.assertNotIn('id="other"', content)
# clean
self.assertTrue(make_campaign_report.disconnect(handler))
评论列表
文章目录