def testPostUpdate(self):
'''Test the twitter.Api PostUpdate method'''
self._AddHandler('https://api.twitter.com/1.1/statuses/update.json',
curry(self._OpenTestData, 'update.json'))
status = self._api.PostUpdate(u'??? ????? ?? ????????? ??????? ????? ?????'.encode('utf8'))
# This is rather arbitrary, but spot checking is better than nothing
self.assertEqual(u'??? ????? ?? ????????? ??????? ????? ?????', status.text)
评论列表
文章目录