(self)
| 165 | self.assertEqual(expected, field.to_xml(content)) |
| 166 | |
| 167 | def test_base64decode_field_to_xml(self): |
| 168 | from wechatpy.fields import Base64DecodeField |
| 169 | |
| 170 | content = to_text(base64.b64encode(b'test')) |
| 171 | field = Base64DecodeField('Content') |
| 172 | expected = '<Content><![CDATA[test]]></Content>' |
| 173 | self.assertEqual(expected, field.to_xml(content)) |
| 174 | |
| 175 | def test_datetime_field_to_xml(self): |
| 176 | from wechatpy.fields import DateTimeField |
nothing calls this directly
no test coverage detected