#NEWLINE# def test_process_data( self ) : #NEWLINE# #INDENT# '\n        CoinbaseProvider.process_data() returns a correct HTTP response\n        ' #NEWLINE# request = MagicMock ( ) #NEWLINE# request . body = json . dumps ( COINBASE_REQUEST ) #NEWLINE# response = self . provider . process_data ( self . payment , request ) #NEWLINE# self . assertEqual ( type ( response ) , HttpResponse ) #NEWLINE# self . assertEqual ( self . payment . status , 'confirmed' )