<s> from AppiumLibrary . locators import ElementFinder <EOL> import mock <EOL> import unittest <EOL> class ElementFinderTests ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> """<STR_LIT>""" <EOL> self . browser = mock . Mock ( ) <EOL> self . finder = ElementFinder ( ) <EOL> def test_should_have_strategies ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertTrue ( '<STR_LIT>' in self . finder . _strategies ) <EOL> self . assertTrue ( '<STR_LIT>' in self . finder . _strategies ) <EOL> def test_should_use_android_finder ( self ) : <EOL> """<STR_LIT>""" <EOL> self . finder . find ( self . browser , '<STR_LIT>' , tag = None ) <EOL> self . browser . find_elements_by_android_uiautomator . assert_called_with ( "<STR_LIT>" ) <EOL> def test_should_use_ios_finder ( self ) : <EOL> """<STR_LIT>""" <EOL> self . finder . find ( self . browser , '<STR_LIT>' , tag = None ) <EOL> self . browser . find_elements_by_ios_uiautomation . assert_called_with ( "<STR_LIT>" ) </s>
