new_contents: from __future__ import absolute_import
  
  from sentry.models import (
      ProcessingIssue, EventError, RawEvent, EventProcessingIssue
  )
  from sentry.testutils import TestCase
  
  
  class ProcessingIssueTest(TestCase):
      def test_simple(self):
          team = self.create_team()
          project1 = self.create_project(team=team, name='foo')
  
          raw_event = RawEvent.objects.create(
              project_id=project1.id,
              event_id='abc'
          )
  
          issue, _ = ProcessingIssue.objects.get_or_create(
              project_id=project1.id,
              checksum='abc',
              type=EventError.NATIVE_MISSING_DSYM
          )
  
          event_processing_issue = EventProcessingIssue.objects.get_or_create(
              raw_event=raw_event,
              processing_issue=issue,
          )
          assert event_processing_issue is not None
          assert EventProcessingIssue.objects.count() == 1
  
          issue.delete()
  
          assert EventProcessingIssue.objects.count() == 0
  
subject: Add processingissue model test