コード例 #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
ファイル: testing.py プロジェクト: abbasyousafzai/mesh
 def test(self):
     server, client = InternalTransport.construct_fixture(bundle, specification)
     function(self, client)