#NEWLINE# def test_associate( self ) : #NEWLINE# #INDENT# 'Establish that the associate method makes the HTTP requests\n        that we expect.\n        ' #NEWLINE# with client . test_mode as t : #NEWLINE# #INDENT# t . register_json ( '/teams/42/users/?id=84' , { #NEWLINE# #INDENT# 'count' : 0 , #NEWLINE# 'results' : [ ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# t . register_json ( '/teams/42/users/' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , method = 'POST' ) #NEWLINE# self . team_resource . associate ( 42 , 84 ) #NEWLINE# self . assertEqual ( t . requests [ 1 ] . body , json . dumps ( { #NEWLINE# #INDENT# 'associate' : True , #NEWLINE# 'id' : 84 , #NEWLINE# #UNINDENT# } ) )