#NEWLINE# def test_from_parent( self ) : #NEWLINE# #INDENT# kwargs = { #NEWLINE# #INDENT# 'text' : 'parent text' , #NEWLINE# 'className' : 'android' , #NEWLINE# #UNINDENT# } #NEWLINE# obj = self . obj . from_parent ( ** kwargs ) #NEWLINE# self . assertEqual ( len ( obj . selector [ 'childOrSibling' ] ) , 1 ) #NEWLINE# self . assertEqual ( self . selector [ 'childOrSibling' ] [ 0 ] , 'sibling' ) #NEWLINE# self . assertEqual ( len ( obj . selector [ 'childOrSiblingSelector' ] ) , 1 ) #NEWLINE# self . assertEqual ( obj . selector [ 'childOrSiblingSelector' ] [ 0 ] , Selector ( ** kwargs ) )