def test_proxy_type_read_only(self):
     proxy_options = ProxyOptions(proxy_type="HTTP", proxy_addr="127.0.0.1", proxy_port=8888)
     with pytest.raises(AttributeError):
         proxy_options.proxy_type = "new value"
 def test_proxy_type_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_type = "new value"