def test_proxy_username_read_only(self): proxy_options = ProxyOptions(proxy_type=socks.HTTP, proxy_addr="127.0.0.1", proxy_port=8888) with pytest.raises(AttributeError): proxy_options.proxy_username = "******"
def test_proxy_username_read_only(self, mocker): proxy_options = ProxyOptions(proxy_type=mocker.MagicMock(), proxy_addr="127.0.0.1", proxy_port=8888) with pytest.raises(AttributeError): proxy_options.proxy_username = "******"