old_contents: #! /usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import os
  from nose.tools import nottest
  
  from openfisca_core.tools.test_runner import generate_tests
  
  from openfisca_france.tests import base
  
  nottest(generate_tests)
  
  options_by_dir = {
      # 'calculateur_impots': {
      #     'default_absolute_error_margin': 0.5,
      #     'reforms' : ['inversion_revenus'],
      #     },
      'fiches_de_paie': {},
      'formulas': {},
      'mes-aides.gouv.fr': {},
      'ui.openfisca.fr': {},
      'scipy': {},
  }
  
  
  def test():
      for directory, options in options_by_dir.iteritems():
          path = os.path.abspath(os.path.join(os.path.dirname(__file__), directory))
  
          if not options.get('default_relative_error_margin') and not options.get('default_absolute_error_margin'):
              options['default_absolute_error_margin'] = 0.005
  
          test_generator = generate_tests(base.tax_benefit_system, path, options)
  
          for test in test_generator:
              yield test
  
  
new_contents: #! /usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import os
  from nose.tools import nottest
  
  from openfisca_core.tools.test_runner import generate_tests
  
  from openfisca_france.tests.base import tax_benefit_system
  
  nottest(generate_tests)
  
  def test():
      tests_directory = os.path.abspath(os.path.join(os.path.dirname(__file__)))
      test_generator = generate_tests(tax_benefit_system, tests_directory)
  
      for test in test_generator:
          yield test
  
subject: Simplify france test runner