#NEWLINE# def backend_data( self , backend_obj ) : #NEWLINE# #INDENT# "Query's the database for the object's current values. Output is a\n        dictionary that should match the result of getting the object's detail\n        via the API, and can be used to verify API output.\n\n        Note: both keys and data should be in unicode\n        " #NEWLINE# actual = { #NEWLINE# #INDENT# 'id' : backend_obj . id , #NEWLINE# 'caseversion' : unicode ( self . get_detail_url ( 'caseversion' , str ( backend_obj . caseversion . id ) ) ) , #NEWLINE# 'instruction' : unicode ( backend_obj . instruction ) , #NEWLINE# 'expected' : unicode ( backend_obj . expected ) , #NEWLINE# 'number' : backend_obj . number , #NEWLINE# 'resource_uri' : unicode ( self . get_detail_url ( self . resource_name , str ( backend_obj . id ) ) ) , #NEWLINE# #UNINDENT# } #NEWLINE# return self