We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed0efd1 commit 9e18dfcCopy full SHA for 9e18dfc
test/unit/webdriver/device/lock_test.py
@@ -14,6 +14,7 @@
14
15
import httpretty
16
17
+from appium.webdriver.webdriver import WebDriver
18
from test.unit.helper.test_helper import (
19
android_w3c_driver,
20
appium_command,
@@ -69,3 +70,12 @@ def test_islocked_true(self):
69
70
)
71
72
assert driver.is_locked() is True
73
+
74
+ @httpretty.activate
75
+ def test_unlock(self):
76
+ driver = android_w3c_driver()
77
+ httpretty.register_uri(
78
+ httpretty.POST,
79
+ appium_command('/session/1234567890/appium/device/unlock'),
80
+ )
81
+ assert isinstance(driver.unlock(), WebDriver)
0 commit comments