old_contents: # -*- coding: utf-8 ; mode: python -*-
  #
  # Copyright (C) 2012:
  #    Hartmut Goebel <h.goebel@crazy-compilers.com>
  #
  # This file is part of Shinken.
  #
  # Shinken is free software: you can redistribute it and/or modify
  # it under the terms of the GNU Affero General Public License as published by
  # the Free Software Foundation, either version 3 of the License, or
  # (at your option) any later version.
  #
  # Shinken is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU Affero General Public License for more details.
  #
  # You should have received a copy of the GNU Affero General Public License
  # along with Shinken.  If not, see <http://www.gnu.org/licenses/>.
  
  """
  
  Helper module for importing the shinken library from the (uninstalled)
  test-suite only, do NOT use the installed one if present.
  
  """
  
  try:
      import shinken
  except ImportError:
      import imp, os
      # For security reasons, try not to load `shinken` from parent
      # directory when running as root.
      if True or not hasattr(os, 'getuid') or os.getuid() != 0:
          imp.load_module('shinken', *imp.find_module('shinken',
                                                      [os.path.dirname(os.path.dirname(os.path.abspath(__file__)))]))
      else:
          # running as root: re-raise the exception
          raise
  
new_contents: # -*- coding: utf-8 ; mode: python -*-
  #
  # Copyright (C) 2012:
  #    Hartmut Goebel <h.goebel@crazy-compilers.com>
  #
  # This file is part of Shinken.
  #
  # Shinken is free software: you can redistribute it and/or modify
  # it under the terms of the GNU Affero General Public License as published by
  # the Free Software Foundation, either version 3 of the License, or
  # (at your option) any later version.
  #
  # Shinken is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU Affero General Public License for more details.
  #
  # You should have received a copy of the GNU Affero General Public License
  # along with Shinken.  If not, see <http://www.gnu.org/licenses/>.
  
  """
  
  Helper module for importing the shinken library from the (uninstalled)
  test-suite only, do NOT use the installed one if present.
  
  """
  
  import imp, os
  try:
      import shinken
  except ImportError:
      imp.load_module('shinken', 
                      *imp.find_module('shinken',
                                       [os.path.dirname(os.path.dirname(os.path.abspath(__file__)))]))
      
  
subject: Revert "Fix: tests again, put back old code, but I dont see the difference"