#NEWLINE# def test_child( self ) : #NEWLINE# #INDENT# self . jsonrpc . getChild . return_value = 'another-name' #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'className' : 'android' , #NEWLINE# 'text' : 'patern match text' , #NEWLINE# #UNINDENT# } #NEWLINE# generic_obj = self . obj . child ( ** kwargs ) #NEWLINE# self . jsonrpc . getChild . assert_called_once_with ( self . name , Selector ( ** kwargs ) ) #NEWLINE# self . assertEqual ( generic_obj . selector , self . jsonrpc . getChild . return_value )