#NEWLINE# def test_child_by_description_allow_scroll_search( self ) : #NEWLINE# #INDENT# self . jsonrpc . childByDescription . return_value = 'myname' #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'className' : 'android' , #NEWLINE# 'text' : 'patern match text' , #NEWLINE# #UNINDENT# } #NEWLINE# generic_obj = self . obj . child_by_description ( 'child text' , allow_scroll_search = False , ** self ) #NEWLINE# self . jsonrpc . childByDescription . assert_called_once_with ( Selector ( ** self . kwargs ) , Selector ( ** kwargs ) , 'child text' , False ) #NEWLINE# self . assertEqual ( 'myname' , generic_obj . selector )