old_contents: from unittest import TestCase
  
  from feedparser import parse
  
  from .mocks import good_atom, updated_atom
  
  from ..utils import FeedComparator
  
  
  class BaseComparatorTestCase(TestCase):
      old_parsed = parse(good_atom)
      new_parsed = parse(updated_atom)
  
      def setUp(self):
          self.compare = FeedComparator(self.new_parsed, self.old_parsed)
  
      def tearDown(self):
          self.compare = None
  
  
  class TestFeedNew(BaseComparatorTestCase):
  
      def test_new_entries_length(self):
          new_entries = self.compare.new_entries()
          self.assertEqual(len(new_entries), 1)
  
      def test_new_entry_content(self):
          new_entries = self.compare.new_entries()
          self.assertEqual(new_entries[0]['title'], 'Colby Nolan')
  
  
  class TestFeedUpdated(BaseComparatorTestCase):
  
      def test_updated_entries_length(self):
          updated_entries = self.compare.updated_entries()
          self.assertEqual(len(updated_entries), 1)
  
      def test_updated_entry_content(self):
          updated_entries = self.compare.updated_entries()
          entry = updated_entries[0]
          self.assertEqual(entry['title'], 'Heathcliff')
          content = entry['content'][0]
          self.assertTrue('This entry was changed!' in content['value'])
  
  
  class TestFeedRemoved(BaseComparatorTestCase):
  
      def test_removed_entries_length(self):
          removed_entries = self.compare.removed_entries()
          print removed_entries
          self.assertEqual(len(removed_entries), 1)
  
new_contents: from unittest import TestCase
  
  from feedparser import parse
  
  from .mocks import good_atom, updated_atom
  
  from ..utils import FeedComparator
  
  
  class BaseComparatorTestCase(TestCase):
      old_parsed = parse(good_atom)
      new_parsed = parse(updated_atom)
  
      def setUp(self):
          self.compare = FeedComparator(self.new_parsed, self.old_parsed)
  
      def tearDown(self):
          self.compare = None
  
  
  class TestFeedNew(BaseComparatorTestCase):
  
      def test_new_entries_length(self):
          new_entries = self.compare.new_entries()
          self.assertEqual(len(new_entries), 1)
  
      def test_new_entry_content(self):
          new_entries = self.compare.new_entries()
          self.assertEqual(new_entries[0]['title'], 'Colby Nolan')
  
  
  class TestFeedUpdated(BaseComparatorTestCase):
  
      def test_updated_entries_length(self):
          updated_entries = self.compare.updated_entries()
          self.assertEqual(len(updated_entries), 1)
  
      def test_updated_entry_content(self):
          updated_entries = self.compare.updated_entries()
          entry = updated_entries[0]
          self.assertEqual(entry['title'], 'Heathcliff')
          content = entry['content'][0]
          self.assertTrue('This entry was changed!' in content['value'])
  
  
  class TestFeedRemoved(BaseComparatorTestCase):
  
      def test_removed_entries_length(self):
          removed_entries = self.compare.removed_entries()
          self.assertEqual(len(removed_entries), 1)
  
      def test_removed_entry_content(self):
          removed_entries = self.compare.removed_entries()
          self.assertTrue(removed_entries[0]['title'], 'Nermal')
  
subject: Add removal content test. Refs #573