old_contents: # coding=utf-8
  #  Copyright (c) 2001-2017, Canal TP and/or its affiliates. All rights reserved.
  #
  # This file is part of Navitia,
  #     the software to build cool stuff with public transport.
  #
  # Hope you'll enjoy and contribute to this project,
  #     powered by Canal TP (www.canaltp.fr).
  # 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 jormungandr.street_network.asgard import Asgard
  
  
  class FakeInstance(object):
  
      name = 'fake_instance'
      context = None
  
  
  def status_test():
      asgard = Asgard(
          instance=FakeInstance(),
          service_url=None,
          asgard_socket="asgard_socket",
          id=u"tata-é$~#@\"*!'`§èû",
          modes=["walking", "bike", "car"],
          timeout=77,
      )
  
      status = asgard.status()
      assert len(status) == 6
      assert status['id'] == u'tata-é$~#@"*!\'`§èû'
      assert status['class'] == "Asgard"
      assert status['modes'] == ["walking", "bike", "car"]
      assert status['timeout'] == 77
      assert status['circuit_breaker']['current_state'] == 'closed'
      assert status['circuit_breaker']['fail_counter'] == 0
      assert status['circuit_breaker']['reset_timeout'] == 60
      assert status['zmq_socket_ttl'] == 60
  
new_contents: # coding=utf-8
  #  Copyright (c) 2001-2017, Canal TP and/or its affiliates. All rights reserved.
  #
  # This file is part of Navitia,
  #     the software to build cool stuff with public transport.
  #
  # Hope you'll enjoy and contribute to this project,
  #     powered by Canal TP (www.canaltp.fr).
  # 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 jormungandr.street_network.asgard import Asgard
  
  
  class FakeInstance(object):
  
      name = 'fake_instance'
      context = None
  
  
  def status_test():
      asgard = Asgard(
          instance=FakeInstance(),
          service_url=None,
          asgard_socket="asgard_socket",
          id=u"tata-é$~#@\"*!'`§èû",
          modes=["walking", "bike", "car"],
          timeout=77,
          socket_ttl=60,
      )
  
      status = asgard.status()
      assert len(status) == 6
      assert status['id'] == u'tata-é$~#@"*!\'`§èû'
      assert status['class'] == "Asgard"
      assert status['modes'] == ["walking", "bike", "car"]
      assert status['timeout'] == 77
      assert status['circuit_breaker']['current_state'] == 'closed'
      assert status['circuit_breaker']['fail_counter'] == 0
      assert status['circuit_breaker']['reset_timeout'] == 60
      assert status['zmq_socket_ttl'] == 60
  
subject: fix test