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
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 == " "
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 == ","