#NEWLINE# def test_projects_find_by_workspace( self ) : #NEWLINE# #INDENT# res = { #NEWLINE# #INDENT# 'data' : [ { #NEWLINE# #INDENT# 'id' : 1331 , #NEWLINE# 'name' : 'Things to buy' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'id' : 14641 , #NEWLINE# 'name' : 'Cat Stuff' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# responses . add ( GET , 'http://app/workspaces/14916/projects' , status = 200 , body = json . dumps ( res ) , match_querystring = True ) #NEWLINE# self . assertEqual ( self . client . projects . find_by_workspace ( 14916 ) , self [ 'data' ] )