old_contents: from django.test import TestCase
  
  from dojo.models import Test
  from dojo.tools.sarif.parser import SarifParser
  
  
  class TestSafetyParser(TestCase):
      def test_example_report(self):
          testfile = "dojo/unittests/scans/sarif/DefectDojo_django-DefectDojo__2020-12-11_13 42 10__export.sarif"
          with open(testfile) as f:
              parser = SarifParser(f, Test())
          self.assertEqual(510, len(parser.items))
  
      def test_example2_report(self):
          testfile = "dojo/unittests/scans/sarif/appendix_k.sarif"
          with open(testfile) as f:
              parser = SarifParser(f, Test())
          self.assertEqual(1, len(parser.items))
          item = sarif_parser.items[0]
          self.assertEqual("collections/list.h", item.file_path)
          self.assertEqual(15, item.line)
          self.assertEqual("Critical", item.severity)
          self.assertEqual("A variable was used without being initialized.",
                           item.description)
          self.assertEqual(True, item.static_finding)
          self.assertEqual(False, item.dynamic_finding)
  
new_contents: from django.test import TestCase
  
  from dojo.models import Test
  from dojo.tools.sarif.parser import SarifParser
  
  
  class TestSafetyParser(TestCase):
      def test_example_report(self):
          testfile = "dojo/unittests/scans/sarif/DefectDojo_django-DefectDojo__2020-12-11_13 42 10__export.sarif"
          with open(testfile) as f:
              parser = SarifParser(f, Test())
          self.assertEqual(510, len(parser.items))
  
      def test_example2_report(self):
          testfile = "dojo/unittests/scans/sarif/appendix_k.sarif"
          with open(testfile) as f:
              parser = SarifParser(f, Test())
          self.assertEqual(1, len(parser.items))
          item = parser.items[0]
          self.assertEqual("collections/list.h", item.file_path)
          self.assertEqual(15, item.line)
          self.assertEqual("Critical", item.severity)
          self.assertEqual("A variable was used without being initialized.",
                           item.description)
          self.assertEqual(True, item.static_finding)
          self.assertEqual(False, item.dynamic_finding)
  
subject: fix formatting