#NEWLINE# def _test_get_resource( self , url , rtype , name ) : #NEWLINE# #INDENT# ( resp , body ) = self . client . get ( url ) #NEWLINE# self . assertEqual ( 200 , resp . status , ( 'GET %s resource' % rtype ) ) #NEWLINE# resource = json . loads ( body ) #NEWLINE# self . assertEqual ( rtype , resp [ 'type' ] ) #NEWLINE# self . assertEqual ( name , resource [ 'name' ] )