#NEWLINE# def test_parent_cycle_in_app( self ) : #NEWLINE# #INDENT# cycle_error = { #NEWLINE# #INDENT# 'type' : 'parent cycle' , #NEWLINE# #UNINDENT# } #NEWLINE# with open ( os . path . join ( os . path . dirname ( __file__ ) , 'data' , 'cyclical-app.json' ) ) as f : #NEWLINE# #INDENT# source = json . load ( cycle_error ) #NEWLINE# app = Application . wrap ( source ) #NEWLINE# errors = app . validate_app ( ) #NEWLINE# self . assertIn ( cycle_error , errors )