old_contents: """
  test for the Enummatcher module.
  """
  
  import unittest
  
  from base_test import PschedTestBase
  
  from pscheduler.enummatcher import EnumMatcher
  
  
  class TestEnummatcher(PschedTestBase):
      """
      Enummatcher tests.
      """
  
      def test_ematcher(self):
          """Enum matcher tests"""
  
          # XXX(mmg): This code from the module just throws an exception.
          # revisit.
  
          # XXX(mmg): There is a new version of this but not sure how it
          # should work.
  
          matcher = EnumMatcher({
              "enumeration": ["foo", "bar", "biz"],
          })
  
          self.assertTrue(matcher.contains(['foo']))
          self.assertTrue(matcher.contains('foo'))
          self.assertTrue(matcher.contains(['foo', 'bar']))
          self.assertFalse(matcher.contains(["foo", "notallowed", "biz"]))
  
          pass
  
  
  if __name__ == '__main__':
      unittest.main()
  
new_contents: """
  test for the Enummatcher module.
  """
  
  import unittest
  
  from base_test import PschedTestBase
  
  from pscheduler.enummatcher import EnumMatcher
  
  
  class TestEnummatcher(PschedTestBase):
      """
      Enummatcher tests.
      """
  
      def test_ematcher(self):
          """Enum matcher tests"""
  
          matcher = EnumMatcher({
              "enumeration": ["foo", "bar", "biz"],
          })
  
          self.assertTrue(matcher.contains(['foo']))
          self.assertTrue(matcher.contains('foo'))
          self.assertTrue(matcher.contains(['foo', 'bar']))
          self.assertFalse(matcher.contains(["foo", "notallowed", "biz"]))
  
          pass
  
  
  if __name__ == '__main__':
      unittest.main()
  
subject: remove XXX comment from enum matcher since it works now.