예제 #1
0
파일: testing.py 프로젝트: aaronj1335/mesh
        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)
예제 #2
0
파일: testing.py 프로젝트: siq-legacy/mesh
        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)
예제 #3
0
 def test(self):
     server, client = InternalTransport.construct_fixture(bundle, specification)
     function(self, client)