#NEWLINE# def assertJsonReplyEqual( self , ans , expected ) : #NEWLINE# #INDENT# 'Make sure that two json strings are the same.' #NEWLINE# self . assertTrue ( ans . startswith ( crud_handler . JSON_PREFIX ) ) #NEWLINE# self . assertTrue ( expected . startswith ( crud_handler . JSON_PREFIX ) ) #NEWLINE# ans = json . loads ( ans [ len ( crud_handler . JSON_PREFIX ) : ] ) #NEWLINE# expected = json . loads ( expected [ len ( crud_handler . JSON_PREFIX ) : ] ) #NEWLINE# self . assertSameStructure ( ans , self )