#NEWLINE# def test_is_pending_registration_searches_parents( self ) : #NEWLINE# #INDENT# user = factories . AuthUserFactory ( ) #NEWLINE# node = factories . NodeFactory ( creator = user ) #NEWLINE# child = factories . NodeFactory ( creator = user , parent = node ) #NEWLINE# factories . NodeFactory ( creator = user , parent = child ) #NEWLINE# with mock_archive ( child ) as registration : #NEWLINE# #INDENT# sub_reg = registration . nodes [ 0 ] . nodes [ 0 ] #NEWLINE# assert_true ( sub_reg . is_pending_registration )