'Post a fake Segment event to the view that processes it'

def post_segmentio_event(self, **kwargs):

    request = self.create_request(data=self.create_segmentio_event_json(**kwargs), content_type='application/json')
    segmentio.track_segmentio_event(request)
