Exemple #1
0
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
Exemple #2
0
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
Exemple #3
0
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