Beispiel #1
0
    def test_link_message(self):
        from wechatpy.messages import LinkMessage

        msg = LinkMessage({
            "Title": "test",
            "Description": "test",
            "Url": "http://www.qq.com",
        })

        self.assertEqual("test", msg.title)
        self.assertEqual("test", msg.description)
        self.assertEqual("http://www.qq.com", msg.url)
Beispiel #2
0
    def test_link_message(self):
        from wechatpy.messages import LinkMessage

        msg = LinkMessage({
            'Title': 'test',
            'Description': 'test',
            'Url': 'http://www.qq.com',
        })

        self.assertEqual('test', msg.title)
        self.assertEqual('test', msg.description)
        self.assertEqual('http://www.qq.com', msg.url)