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)
test_chamber_of_deputies_dataset.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录