(self)
| 223 | self.assertEqual(0, result['errcode']) |
| 224 | |
| 225 | def test_update_menu(self): |
| 226 | with HTTMock(wechat_api_mock): |
| 227 | result = self.client.menu.update({ |
| 228 | 'button': [ |
| 229 | { |
| 230 | 'type': 'click', |
| 231 | 'name': 'test', |
| 232 | 'key': 'test' |
| 233 | } |
| 234 | ] |
| 235 | }) |
| 236 | self.assertEqual(0, result['errcode']) |
| 237 | |
| 238 | def test_short_url(self): |
| 239 | with HTTMock(wechat_api_mock): |