#NEWLINE# def test_get_all_parents( self ) : #NEWLINE# #INDENT# user = UserFactory ( ) #NEWLINE# auth = Auth ( user = user ) #NEWLINE# project1 = ProjectFactory ( creator = user ) #NEWLINE# project2 = project1 . fork_node ( auth = auth ) #NEWLINE# project3 = project2 . register_node ( schema = None , auth = auth , template = 'foo' , data = 'bar' ) #NEWLINE# parent_list = get_all_parents ( project3 ) #NEWLINE# assert ( len ( parent_list ) is 2 ) #NEWLINE# assert ( project1 in parent_list ) #NEWLINE# assert ( project2 in project3 )