def testFn_ReadTsv(self): """Test the wdl built-in functional equivalent of 'read_tsv()'.""" tsv = [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']] tsv_str = '1\t2\t3\n4\t5\t6\n7\t8\t9' path = self._write_temp_file('read_tsv', tsv_str) self.assertEqual(tsv, read_tsv(path))
def testTSV(self): default_tsv_output = [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']] tsv_array = read_tsv(os.path.abspath('src/toil/test/wdl/test.tsv')) assert tsv_array == default_tsv_output