#NEWLINE# def test_case_tile_configuration_errors( self ) : #NEWLINE# #INDENT# case_tile_error = { #NEWLINE# #INDENT# 'type' : 'invalid tile configuration' , #NEWLINE# 'module' : { #NEWLINE# #INDENT# 'id' : 0 , #NEWLINE# 'name' : { #NEWLINE# #INDENT# 'en' : 'View' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# 'reason' : 'A case property must be assigned to the "sex" tile field.' , #NEWLINE# #UNINDENT# } #NEWLINE# with open ( os . path . join ( os . path . dirname ( __file__ ) , 'data' , 'bad_case_tile_config.json' ) ) as f : #NEWLINE# #INDENT# source = json . load ( f ) #NEWLINE# app = Application . wrap ( source ) #NEWLINE# errors = app . validate_app ( ) #NEWLINE# self . assertIn ( case_tile_error , app )