def test_csv2filter_str1(outcsv): csv2filter("tests/data/dupbc.bed", '==', 'chr2', col=1, outfile=outcsv) lines = [line for line in open(outcsv)] assert len(lines) == 2
def test_csv2filter_err1(outcsv): isok = csv2filter("tests/data/dupbc.bed", '==', 5, col=1, outfile=outcsv) lines = [line for line in open(outcsv)] assert len(lines) == 0 and isok is False
def test_csv2filter_num3(outcsv): csv2filter("tests/data/dupbc.bed", '!=', 0, col=5, outfile=outcsv) lines = [line for line in open(outcsv)] assert len(lines) == 0