old_contents: # This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  
  import pytest
  
  from wampy.peers.clients import Client
  from wampy.roles.callee import callee
  
  
  @pytest.fixture
  def config_path():
      return './wampy/testing/configs/crossbar.json'
  
  
  @pytest.yield_fixture
  def echo_service(router):
  
      class EchoService(Client):
  
          @callee
          def echo(self, *args, **kwargs):
              return "{} {}".format(*args, **kwargs)
  
      with EchoService(url=router.url):
          yield
  
new_contents: # This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  
  import pytest
  
  from wampy.peers.clients import Client
  from wampy.roles.callee import callee
  
  
  @pytest.fixture
  def config_path():
      return './wampy/testing/configs/crossbar.json'
  
  
  @pytest.yield_fixture
  def echo_service(router):
  
      class EchoService(Client):
  
          @callee
          def echo(self, **kwargs):
              return kwargs
  
      with EchoService(url=router.url):
          yield
  
subject: fix test setup