Skip to content

Commit 0f407b7

Browse files
committed
adding test for the last change
1 parent 4a6e28b commit 0f407b7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

py/test/selenium/webdriver/common/proxy_tests.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ def testCanNotChangeInitializedProxyType(self):
8787
raise Exception("Change of already initialized proxy type should raise exception")
8888
except Exception as e:
8989
pass
90+
91+
proxy = Proxy(raw={'proxyType': ProxyType.DIRECT})
92+
try:
93+
proxy.proxy_type = ProxyType.SYSTEM
94+
raise Exception("Change of already initialized proxy type should raise exception")
95+
except Exception as e:
96+
pass
9097

9198
def testCanInitManualProxy(self):
9299
proxy = Proxy(raw=self.MANUAL_PROXY)

0 commit comments

Comments
 (0)