old_contents: import os
  import unittest
  import doctest
  import zope.component
  from pprint import pprint
  from interlude import interact
  from zope.configuration.xmlconfig import XMLConfig
  
  optionflags = doctest.NORMALIZE_WHITESPACE | \
                doctest.ELLIPSIS | \
                doctest.REPORT_ONLY_FIRST_FAILURE
  
  TESTFILES = [
      '../core.txt',
      '../classes.txt',
      '../utils.txt',
  ]
  
  datadir = os.path.join(os.path.dirname(__file__), '..', '_api', 'data')
  
  def test_suite():
      XMLConfig('meta.zcml', zope.component)()
  
      return unittest.TestSuite([
          doctest.DocFileSuite(
              file,
              optionflags=optionflags,
              globs={'interact': interact,
                     'pprint': pprint,
                     'datadir': datadir,},
          ) for file in TESTFILES
      ])
  
  if __name__ == '__main__':
      unittest.main(defaultTest='test_suite')
  
new_contents: import os
  import unittest
  import doctest
  import zope.component
  from pprint import pprint
  from interlude import interact
  from zope.configuration.xmlconfig import XMLConfig
  
  optionflags = doctest.NORMALIZE_WHITESPACE | \
                doctest.ELLIPSIS | \
                doctest.REPORT_ONLY_FIRST_FAILURE
  
  TESTFILES = [
      '../core.txt',
      '../classes.txt',
      '../activities.txt',
      '../utils.txt',
  ]
  
  datadir = os.path.join(os.path.dirname(__file__), '..', '_api', 'data')
  
  def test_suite():
      XMLConfig('meta.zcml', zope.component)()
  
      return unittest.TestSuite([
          doctest.DocFileSuite(
              file,
              optionflags=optionflags,
              globs={'interact': interact,
                     'pprint': pprint,
                     'datadir': datadir,},
          ) for file in TESTFILES
      ])
  
  if __name__ == '__main__':
      unittest.main(defaultTest='test_suite')
  
subject: add activities.txt to doctests