Skip to content
Browse files

test that alias is used

accidentally dropped this coverage in last commit
  • Loading branch information...
1 parent 0700597 commit 922c3c7b708948fd5ded332ff2999e732c0bf5d8 @ombre42 ombre42 committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/unit/keywords/test_browsermanagement.py
View
3 test/unit/keywords/test_browsermanagement.py
@@ -95,10 +95,11 @@ def __init__(self, some_arg=None):
capt_data['webdriver'] = self
webdriver.FakeWebDriver = FakeWebDriver
try:
- index = bm.create_webdriver('FakeWebDriver', some_arg=1)
+ index = bm.create_webdriver('FakeWebDriver', 'fake', some_arg=1)
self.assertEquals(capt_data['some_arg'], 1)
self.assertEquals(capt_data['webdriver'], bm._current_browser())
self.assertEquals(capt_data['webdriver'], bm._cache.get_connection(index))
+ self.assertEquals(capt_data['webdriver'], bm._cache.get_connection('fake'))
capt_data.clear()
my_kwargs = {'some_arg':2}
bm.create_webdriver('FakeWebDriver', kwargs=my_kwargs)

0 comments on commit 922c3c7

Please sign in to comment.
Something went wrong with that request. Please try again.