#NEWLINE# def test_channel_uninstall( self ) : #NEWLINE# #INDENT# with mock . patch . object ( ua . Airship , '_request' ) as mock_request : #NEWLINE# #INDENT# response = requests . Response ( ) #NEWLINE# response . _content = json . dumps ( { #NEWLINE# #INDENT# 'ok' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# mock_request . return_value = response #NEWLINE# airship = ua . Airship ( 'key' , 'secret' ) #NEWLINE# cu = ua . ChannelUninstall ( airship ) #NEWLINE# chans = [ { #NEWLINE# #INDENT# 'channel_id' : '01000001-01010000-01010000-01001100' , #NEWLINE# 'device_type' : 'ios' , #NEWLINE# #UNINDENT# } ] #NEWLINE# cu_res = json . loads ( cu . uninstall ( chans ) . content ) #NEWLINE# self . assertEqual ( cu_res [ 'ok' ] , True )