old_contents: from tests.test_cwd import utils
  
  our_cwd_setup = utils.our_cwd_setup
  
  
  def test_get_config_dir_project_defaults(our_cwd_setup):
      from cli import conf
      from cli import utils
  
      utils.IR_CONF_FILE = 'non_existing_conf.ini'
  
      conf_file = conf.load_config_file()
  
      assert 'defaults' in conf_file.sections(),\
          "'defaults' section not in project's default conf file"
  
      assert len(conf_file.sections()) == 1, \
          "'defaults' section isn't the only section in the " \
          "project's default conf file"
  
      file_default_options = conf_file.options('defaults')
      file_default_options.sort()
  
      module_default_options = conf.DEFAULT_CONF_DIRS.keys()
      module_default_options.sort()
  
      assert file_default_options == module_default_options, \
          "Options in conf module and conf file aren't the same"
  
      from os.path import dirname, join
      for option in conf_file.options('defaults'):
          assert conf_file.get('defaults', option) == join(dirname(dirname(
              __file__)), conf.DEFAULT_CONF_DIRS[option]),\
              "Incorrect Option's (%s) value" % option
  
new_contents: from tests.test_cwd import utils
  
  our_cwd_setup = utils.our_cwd_setup
  
  
  def test_get_config_dir_project_defaults(our_cwd_setup):
      from cli import conf
      from cli import utils
  
      utils.IR_CONF_FILE = 'non_existing_conf.ini'
  
      conf_file = conf.load_config_file()
  
      assert 'defaults' in conf_file.sections(),\
          "'defaults' section not in project's default conf file"
  
      file_default_options = conf_file.options('defaults')
      file_default_options.sort()
  
      module_default_options = conf.DEFAULT_SECTIONS['defaults'].keys()
      module_default_options.sort()
  
      assert file_default_options == module_default_options, \
          "Options in conf module and conf file aren't the same"
  
      from os.path import dirname, join
      for option in conf_file.options('defaults'):
          assert conf_file.get('defaults', option) == join(dirname(dirname(
              __file__)), conf.DEFAULT_SECTIONS['defaults'][option]),\
              "Incorrect Option's (%s) value" % option
  
subject: Fix unit test