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