test_process.py 文件源码

python
阅读 34 收藏 0 点赞 0 评论 0

项目:FormShare 作者: qlands 项目源码 文件源码
def _get_csv_(self):
        # todo: get the csv.reader to handle unicode as done here:
        # http://docs.python.org/library/csv.html#examples
        url = reverse('csv_export', kwargs={
            'username': self.user.username, 'id_string': self.xform.id_string})
        response = self.client.get(url)
        self.assertEqual(response.status_code, 200)
        actual_csv = self._get_response_content(response)
        actual_lines = actual_csv.split("\n")
        return csv.reader(actual_lines)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号