Ejemplo n.º 1
0
        def test(self):
            specification = bundle.specify()
            server, client = InternalTransport.construct_fixture(bundle, specification,
                context=context, mediators=mediators)
            client.execute = _execute_wrapper(client.execute, bundle, version)

            if generator:
                client.register()
                try:
                    binding = generator.generate_dynamically(bundle, version)
                    call_with_supported_params(function, self, client=client, binding=binding,
                        **binding.__dict__)
                finally:
                    client.unregister()
            else:
                call_with_supported_params(function, self, client=client)
Ejemplo n.º 2
0
        def test(self):
            specification = bundle.specify()
            server, client = InternalTransport.construct_fixture(bundle, specification,
                context=context, mediators=mediators)
            client._execute = client.execute
            client.execute = _execute_wrapper(client._execute, bundle, version)

            if generator:
                client.register()
                try:
                    binding = generator.generate_dynamically(bundle, version)
                    call_with_supported_params(function, self, client=client, binding=binding,
                        **binding.__dict__)
                finally:
                    client.unregister()
            else:
                call_with_supported_params(function, self, client=client)
Ejemplo n.º 3
0
 def test(self):
     server, client = InternalTransport.construct_fixture(bundle, specification)
     function(self, client)