(self)
| 144 | self.assertEqual(0, result['errcode']) |
| 145 | |
| 146 | def test_send_articles_message(self): |
| 147 | with HTTMock(wechat_api_mock): |
| 148 | articles = [{ |
| 149 | 'title': 'test', |
| 150 | 'description': 'test', |
| 151 | 'url': 'http://www.qq.com', |
| 152 | 'image': 'http://www.qq.com' |
| 153 | }] |
| 154 | result = self.client.message.send_articles(1, articles) |
| 155 | self.assertEqual(0, result['errcode']) |
| 156 | |
| 157 | def test_send_card_message(self): |
| 158 | with HTTMock(wechat_api_mock): |
nothing calls this directly
no test coverage detected