Example #1
0
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
Example #2
0
def test_set_from_list_raises():
    with pytest.raises(TypeError):
        S.set_from_list_or_string(("not supported tuple", ))
Example #3
0
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