def test_websocketize_raises_on_non_http_https_urls(url): with pytest.raises(ValueError): ext.websocketize(url)
def test_websocketize(url_in, url_out): result = ext.websocketize(url_in) assert result == url_out