new_contents: # coding: utf-8
  # Copyright (c) 2001-2022, Hove and/or its affiliates. All rights reserved.
  #
  # This file is part of Navitia,
  #     the software to build cool stuff with public transport.
  #
  #     powered by Hove (www.hove.com).
  # Help us simplify mobility and open public transport:
  #     a non ending quest to the responsive locomotion way of traveling!
  #
  # LICENCE: This program 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.
  #
  # This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
  #
  # Stay tuned using
  # twitter @navitia
  # channel `#navitia` on riot https://riot.im/app/#/room/#navitia:matrix.org
  # https://groups.google.com/d/forum/navitia
  # www.navitia.io
  
  from __future__ import absolute_import, print_function, division
  from tyr.binarisation import make_connection_string
  from tyr.helper import InstanceConfig
  
  
  def test_make_connection_string():
      config_instance = InstanceConfig()
      config_instance.pg_host = 'localhost'
      config_instance.pg_username = 'user'
      config_instance.pg_dbname = 'test'
      config_instance.pg_password = 'pwd'
      config_instance.pg_port = 1234
      connection_string = make_connection_string(config_instance)
      assert connection_string == 'host=localhost user=user dbname=test password=pwd port=1234'
  
subject: test added