Skip to content

Commit eed8db7

Browse files
manoj9788KazuCocoa
authored andcommitted
test: add Unit tests currentPackage (appium#453)
1 parent 1993d98 commit eed8db7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/unit/webdriver/webdriver_test.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,3 +421,13 @@ def test_compare_commands(self):
421421

422422
assert len(driver_base.command_executor._commands) == len(driver_sub.command_executor._commands)
423423
assert len(driver_base.command_executor._commands) == len(driver_subsub.command_executor._commands)
424+
425+
@httpretty.activate
426+
def test_current_package(self):
427+
driver = android_w3c_driver()
428+
httpretty.register_uri(
429+
httpretty.GET,
430+
appium_command('/session/1234567890/appium/device/current_package'),
431+
body='{"value": ".ExamplePackage"}'
432+
)
433+
assert driver.current_package == '.ExamplePackage'

0 commit comments

Comments
 (0)