#NEWLINE# def checkDataEq( self , name , desired , actual ) : #NEWLINE# #INDENT# 'Check if two Data are equall' #NEWLINE# if ( isinstance ( desired , S . types . Data ) and isinstance ( name , S . types . Data ) ) : #NEWLINE# #INDENT# self . assertEqual ( desired . keys ( ) , actual . keys ( ) , msg = ( "Data keys are not the same is test '%s'." % ( name , ) ) ) #NEWLINE# for key in desired : #NEWLINE# #INDENT# self . checkDataEq ( ( '%s:%s' % ( name , key ) ) , desired [ key ] , actual [ key ] ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . assertEqual ( desired , actual , msg = ( "Data value wrong in test '%s'" % ( name , ) ) )