Every line of 'convert xlsx to csv python' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
13 def test_xlsx(self): 14 with open('examples/test.xlsx', 'rb') as f: 15 output = xlsx.xlsx2csv(f) 16 17 with open('examples/testxlsx_converted.csv', 'r') as f: 18 self.assertEquals(f.read(), output)
20 def test_xls_with_sheet(self): 21 with open('examples/sheets.xls', 'rb') as f: 22 output = xls.xls2csv(f, sheet='data') 23 24 with open('examples/testxls_converted.csv', 'r') as f: 25 self.assertEquals(f.read(), output)