def test_args_from_line(): line = 'LAmerge -v preads.1 preads.1.preads.1.C0.S preads.1.preads.1.N0.S' expected = ['preads.1', 'preads.1.preads.1.C0.S', 'preads.1.preads.1.N0.S'] result = list(f.yield_args_from_line(line)) helpers.equal_list(result, expected) bash_lines = [line] las_files = [word + '.las' for word in f.yield_args_from_line( line) for line in bash_lines if line.startswith('LAmerge')][1:]
def test_args_from_line(): line = 'LAmerge -v preads.1 preads.1.preads.1.C0.S preads.1.preads.1.N0.S' expected = ['preads.1', 'preads.1.preads.1.C0.S', 'preads.1.preads.1.N0.S'] result = list(f.yield_args_from_line(line)) helpers.equal_list(result, expected) bash_lines = [line] las_files = [ word + '.las' for word in f.yield_args_from_line(line) for line in bash_lines if line.startswith('LAmerge') ][1:]
def test_parsed_readlengths_from_dbdump_output(): lengths = list( f.parsed_readlengths_from_dbdump_output(sample_DBdump_output)) helpers.equal_list(lengths, [2000, 2000, 2500])
def test_parsed_readlengths_from_dbdump_output(): lengths = list(f.parsed_readlengths_from_dbdump_output( sample_DBdump_output)) helpers.equal_list(lengths, [2000, 2000, 2500])
def test_parse_readlengths_from_dbdump(): #result = list(M.parse_readlengths_from_dbdump(StringIO(sample_DBdump))) result = list(M.parse_readlengths_from_dbdump_output(sample_DBdump)) expected = [1998, 2001] helpers.equal_list(result, expected)