old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  """
  test_dj-spam
  ------------
  
  Tests for `dj-spam` models module.
  """
  
  import os
  import shutil
  import unittest
  
  from spam import models
  
  
  class TestSpam(unittest.TestCase):
  
      def setUp(self):
          pass
  
      def test_something(self):
          pass
  
      def tearDown(self):
          pass
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  """
  test_dj-spam
  ------------
  
  Tests for `dj-spam` models module.
  """
  
  import os
  import shutil
  from test_plus.test import TestCase
  
  from django.conf import settings
  
  from spam.models import SpammyPosting
  
  
  class TestSpammyPosting(TestCase):
  
      def setUp(self):
          self.user = self.make_user()
          self.spammy_posting = SpammyPosting.objects.create(
              reporter=self.user,
              status=SpammyPosting.FLAGGED,
              reviewer=self.user,
              comment="Includes too many links"
          )
  
      def test_str(self):
          self.assertEqual(self.spammy_posting.__str__(), "Flagged")
  
subject: Test SpammyPosting's __str__() method.