def test_uninstall_apphooks_without_apphook(self):
out = StringIO()
management.call_command('cms', 'uninstall', 'apphooks', APPHOOK, interactive=False, stdout=out)
self.assertEqual(out.getvalue(), "no 'SampleApp' apphooks found\n")
评论列表
文章目录