

@with_settings(PUBLIC_WRITES=True, REMOTES=['/api/store/'])
def test_client(self):
    client = InternalRemoteSentryClient()
    event_id = client.capture('Message', message='foo')
    event = Event.objects.get(event_id)
    self.assertEquals(event_data.type, 'sentry.events.Message')
    self.assertEquals(event.time_spent, 0)
    self.assertTrue(('sentry.interfaces.Message' in event.data))
    event_data = event.data['sentry.interfaces.Message']
    self.assertTrue(('message' in event_data))
    self.assertEquals(event_data['message'], 'foo')
    self.assertTrue(('params' in event_data))
    self.assertEquals(event_data['params'], [])

dataset/ETHPy150Open dcramer/sentry-old/tests/test_web/test_api.py StoreIntegrationTest.test_client/VarMisuse@58/83 `event`->`event_data`