Пример #1
0
def test_get_separator_unknown():
    """Test to get a separator"""
    # GIVEN a line with commas as delimiter
    line = "one.two.three"
    # WHEN getting the separator
    sep = samplesheet.get_separator(line)
    # THEN assert None is returned
    assert sep is None
Пример #2
0
def test_get_separator_space():
    """Test to get a separator"""
    # GIVEN a line with spaces
    line = "one two three"
    # WHEN getting the separator
    sep = samplesheet.get_separator(line)
    # THEN assert space is returned
    assert sep == " "
Пример #3
0
def test_get_separator_csv():
    """Test to get a separator"""
    # GIVEN a line with commas as delimiter
    line = "one,two,three"
    # WHEN getting the separator
    sep = samplesheet.get_separator(line)
    # THEN assert comma is returned
    assert sep == ","