old_contents: """Tests for running TopoFlow components in CMI."""
  import os
  
  
  def locate_topoflow(cache_dir):
      for x in os.listdir(cache_dir):
          if x.startswith('topoflow'):
              return x
  
  
  root_dir = '/home/csdms/wmt/topoflow.0'
  cache_dir = os.path.join(root_dir, 'cache')
  topoflow_dir = locate_topoflow(cache_dir)
  example_dir = os.path.join(cache_dir, topoflow_dir,
                             'topoflow', 'examples', 'Treynor_Iowa')
  
new_contents: """Tests for running TopoFlow components in CMI."""
  import os
  
  
  def locate_topoflow(cache_dir):
      for x in os.listdir(cache_dir):
          if x.startswith('topoflow'):
              return x
  
  
  root_dir = '/home/csdms/wmt/topoflow.0'
  cache_dir = os.path.join(root_dir, 'cache')
  topoflow_dir = locate_topoflow(cache_dir)
  example_dir = os.path.join(cache_dir, topoflow_dir,
                             'topoflow', 'examples', 'Treynor_Iowa')
  
  # Used by tests for D8 and Erode components.
  data_dir = os.path.join(os.path.abspath('..'), 'data')
  test_dir = os.path.dirname(__file__)
  
subject: Add path to data directory