def test_split_choices_multi_items_multi_sep(): assert GetParams.split_choices( s=CHOICES_MULTI, sep=SEP_MULTI, ) == CHOICES_MULTI_SPLIT_MULTI_SEP
def test_split_choices_one_item(): assert GetParams.split_choices(s=CHOICES, ) == CHOICES_SPLIT
def test_split_choices_wrong_type_s(): with pytest.raises(TypeError): GetParams.split_choices(s=LIST, )
def test_split_choices_wrong_type_sep_2(): with pytest.raises(TypeError): GetParams.split_choices( s=UNSANITIZED, sep=LIST, )
def test_split_choices_no_args(): with pytest.raises(TypeError): GetParams.split_choices()