old_contents: from django.test import TestCase
  
  # Create your tests here.
  
new_contents: from django.test import TestCase
  
  from parliament.util import parse_name_initials_surname
  from parliament.util import parse_name_surname_initials
  
  
  class TestParseName(TestCase):
      """ Tests name parsing """
      initials_expected = 'P.A.'
      surname_expected = 'Dijkstra'
  
      def check_result(self, initials, surname):
          self.assertEqual(initials, self.initials_expected)
          self.assertEqual(surname, self.surname_expected)
  
      def test_initials_surname(self):
          name = 'P.A. Dijkstra'
          initials, surname = parse_name_initials_surname(name)
          self.check_result(initials, surname)
  
      def test_initials_surname_forname(self):
          name = 'P.A. (Pia) Dijkstra'
          initials, surname = parse_name_initials_surname(name)
          self.check_result(initials, surname)
          name = 'P.A. (Pia)Dijkstra'
          initials, surname = parse_name_initials_surname(name)
          self.check_result(initials, surname)
  
      def test_surname_initials(self):
          name = 'Dijkstra, P.A.'
          initials, surname = parse_name_surname_initials(name)
          self.check_result(initials, surname)
          name = 'Dijkstra,P.A.'
          initials, surname = parse_name_surname_initials(name)
          self.check_result(initials, surname)
  
      def test_surname_initials_forname(self):
          name = 'Dijkstra, P.A.(Pia)'
          initials, surname = parse_name_surname_initials(name)
          self.check_result(initials, surname)
          name = 'Dijkstra, P.A. (Pia)'
          initials, surname = parse_name_surname_initials(name)
          self.check_result(initials, surname)
          name = 'Dijkstra,P.A.(Pia)'
          initials, surname = parse_name_surname_initials(name)
          self.check_result(initials, surname)
  
subject: create tests for name parsing