def cancel(self, sn=None, criteria=None): admin = Admin() admin.container = Container() return admin.cancel(sn=sn, criteria=criteria)
def show(self): admin = Admin() admin.container = Container() return admin.help()
def test_help(self, loaded, actions): admin = Admin() admin.container = Mock() report = admin.help() loaded.assert_called_once_with(admin.container, actions.return_value) self.assertEqual(report, loaded.return_value)