def test_set_from_list_or_string_list(): assert type(S.set_from_list_or_string(["abc", "bcd"])) is set assert len(S.set_from_list_or_string(["abc", "bcd"])) == 2
def test_set_from_list_raises(): with pytest.raises(TypeError): S.set_from_list_or_string(("not supported tuple", ))
def test_set_from_list_or_string_str(): assert type(S.set_from_list_or_string("abc")) is set assert len(S.set_from_list_or_string("abc")) == 1