Example #1
0
def test_samtools_merge_list_args():
    text = "[<in2.bam> ... <inN.bam>]"
    el = usage_element.parseString(text)
    assert len(el) == 1
    assert isinstance(el[0], UsageElement)
    assert el[0].repeatable
Example #2
0
def test_samtools_merge_variable():
    text = "<out.bam>"
    els = usage_element.parseString(text)
    assert len(els) == 1
    assert isinstance(els[0], UsageElement)
    assert els[0].variable
Example #3
0
def test_samtools_merge_flag_arg():
    text = "-h inh.sam"
    els = usage_element.parseString(text)
    assert len(els) == 1
    assert isinstance(els[0], Flag)
    assert isinstance(els[0].args, SimpleFlagArg)
Example #4
0
def test_samtools_merge_optional_short_flags():
    text = "[-nurlf]"
    els = usage_element.parseString(text)
    assert len(els) == 5
    assert isinstance(els[0], Flag)
    assert els[0].optional