@patch('open_connect.mailer.views.create_open')
    def test_process_request(self, mock):
        result = self.view(
            self.request,
            encoded_data=OPEN_DATA_ENCODED,
            request_hash=OPEN_DATA_HASH)

        mock.assert_called_once_with(OPEN_DATA, self.request.META)

        self.assertEqual(result.status_code, 200)
        self.assertEqual(result['content-type'], 'image/gif')
Test a valid call to process_request
dataset/ETHPy150Open ofa/connect/open_connect/mailer/tests/test_views.py/TestOpenView.test_process_request