def test_all_voice_fmt(self):
for fmt in options.fmtlist:
if len(fmt): continue
response = self.fetch("/tts?text=hello&type=filename&fmt=%s"%fmt)
status = escape.json_decode(response.body)
self.assertEqual(response.code, 200)
self.assertTrue(status["success"])
# ??????????????
self.assertEqual(os.path.splitext(status['data']['name'][1]), fmt)
评论列表
文章目录