Beispiel #1
0
def test_cdata():
    weixinhandler = Weixin(token="weixin-token")
    cdata_str = weixinhandler._cdata("hello")
    assert_equal(cdata_str, '<![CDATA[hello]]>')
Beispiel #2
0
def test_cdata():
    weixinhandler = Weixin(token="weixin-token")
    cdata_str = weixinhandler._cdata("hello")
    assert_equal(cdata_str, '<![CDATA[hello]]>')