def test_tostring(self):
        # Not sure if this is normal, but self.exception returns:
        # AssertionError: '<IOError, pk=1, Event=ping - evt_xxxxxxxxxxxxx>' != '<Error in transmission., pk=1, Event=ping - evt_xxxxxxxxxxxxx>'
        # - <IOError, pk=1, Event=ping - evt_xxxxxxxxxxxxx>
        # ?  --
        # + <Error in transmission., pk=1, Event=<ping, stripe_id=evt_xxxxxxxxxxxxx>>
        # ?       ++++++++++++++++++

        try:
            raise IOError("Error in transmission.")
        except __HOLE__ as error:
            EventProcessingException.log(data=self.msg["data"], exception=error, event=self.event)
            exception = EventProcessingException.objects.get(event=self.event)

        # It may be too strict to assert the pk? Maybe incr field not reset in some psql implementations?
        # self.assertIn('<Error in transmission., pk=1, Event=<ping, stripe_id=evt_xxxxxxxxxxxxx>>', str(exception))
        self.assertIn('<Error in transmission., pk=', str(exception))
        self.assertIn(', Event=<ping, stripe_id=evt_xxxxxxxxxxxxx>>', str(exception))
dataset/ETHPy150Open pydanny/dj-stripe/tests/test_event_processing_exception.py/TestEventProcessingException.test_tostring