@mock.patch('raven.contrib.django.celery.send_raw')
    def test_without_eager(self, send_raw):
        self.client.captureMessage(message='test')

        assert send_raw.delay.call_count == 1
Integration test to ensure it propagates all the way down
dataset/ETHPy150Open getsentry/raven-python/tests/contrib/django/tests.py/CeleryIsolatedClientTest.test_without_eager