#NEWLINE# def test_node_list_has_root( self ) : #NEWLINE# #INDENT# res = self . app . get ( self . url , auth = self . user . auth ) #NEWLINE# projects_with_root = 0 #NEWLINE# for project in res . json [ 'data' ] : #NEWLINE# #INDENT# if project [ 'relationships' ] . get ( 'root' , None ) : #NEWLINE# #INDENT# projects_with_root += 1 #NEWLINE# #UNINDENT# #UNINDENT# assert_not_equal ( res , 0 ) #NEWLINE# assert_true ( all ( [ ( each [ 'relationships' ] . get ( 'root' ) is not None ) for each in res . json [ 'data' ] ] ) )