def test_process_data(self):
        request = MagicMock()
        request.body = json.dumps(COINBASE_REQUEST)
        response = self.provider.process_data(self.payment, request)
        self.assertEqual(type(response), HttpResponse)
        self.assertEqual(self.payment.status, 'confirmed')
CoinbaseProvider.process_data() returns a correct HTTP response
dataset/ETHPy150Open mirumee/django-payments/payments/coinbase/test_coinbase.py/TestCoinbaseProvider.test_process_data