def test_init(self):
"""
Test init function of admincommands class
"""
with patch("ownbot.admincommands.UserManager"):
dispatcher = Mock(spec=Dispatcher)
AdminCommands(dispatcher)
self.assertTrue(dispatcher.add_handler.called)
评论列表
文章目录