#NEWLINE# def test_config_bad_children( self ) : #NEWLINE# #INDENT# 'Check config with bad children entry.' #NEWLINE# config_no_children = { #NEWLINE# #INDENT# 'name' : 'test' , #NEWLINE# 'platform' : 'universal' , #NEWLINE# #UNINDENT# } #NEWLINE# config_bad_children = { #NEWLINE# #INDENT# 'name' : 'test' , #NEWLINE# 'children' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# 'platform' : 'universal' , #NEWLINE# #UNINDENT# } #NEWLINE# response = universal . validate_config ( config_no_children ) #NEWLINE# self . assertTrue ( response ) #NEWLINE# self . assertEqual ( [ ] , response [ 'children' ] ) #NEWLINE# response = universal . validate_config ( config_bad_children ) #NEWLINE# self . assertTrue ( response ) #NEWLINE# self . assertEqual ( [ ] , config_bad_children [ 'children' ] )