def test_expand_row(bed_row): data = bed.expand_row(bed_row) assert data['name'] == bed_row[3] # test with malformatted values # GIVEN position is not int bed_row[1] = 'paulthomas' with pytest.raises(BedFormattingError): bed.expand_row(bed_row)
def test_expand_row_space_separated(): with pytest.raises(BedFormattingError): bed.expand_row(['22 32588888 32589173 22-32588888-32589173'])