test_chamber_of_deputies_dataset.py 文件源码

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

项目:serenata-toolbox 作者: datasciencebr 项目源码 文件源码
def test_translate_csv_with_reimbursement_with_net_value_with_decimal_comma(self):
        csv_with_decimal_comma = os.path.join(self.fixtures_path, 'Ano-with-decimal-comma.csv')
        path_with_decimal_point = os.path.join(self.fixtures_path, 
             'reimbursements-with-decimal-point.csv')
        with open(path_with_decimal_point, 'r') as csv_expected:
            expected = csv_expected.read()

        xz_path = Dataset('')._translate_file(csv_with_decimal_comma)
        with lzma.open(xz_path) as xz_file:
            output = xz_file.read().decode('utf-8')
        self.assertEqual(output, expected)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号