def test_fail__valid_stream_resolution(arg: Any) -> None: with pytest.raises(ValidatorError): print(valid_stream_resolution(arg))
def test_ok__valid_stream_resolution(arg: Any) -> None: value = valid_stream_resolution(arg) assert type(value) == str # pylint: disable=unidiomatic-typecheck assert value == str(arg).strip()