diff options
author | Yuchen Zeng <zyc@google.com> | 2016-06-23 13:58:29 -0700 |
---|---|---|
committer | Yuchen Zeng <zyc@google.com> | 2016-06-23 13:58:29 -0700 |
commit | 09b1ec8ccb7b0e5b9073fb346840bcfd00f35caf (patch) | |
tree | b2bc46c3e3741240b98c99bc1673da0b43676c03 /src/python/grpcio/tests/unit/_metadata_test.py | |
parent | d139da8b9a9c482a83b23c926690f01b49025640 (diff) | |
parent | 0140f7c9e6c20fe78035d9635a3f5725d51ad35a (diff) |
Merge remote-tracking branch 'upstream/master' into auto-build-example
Diffstat (limited to 'src/python/grpcio/tests/unit/_metadata_test.py')
-rw-r--r-- | src/python/grpcio/tests/unit/_metadata_test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/python/grpcio/tests/unit/_metadata_test.py b/src/python/grpcio/tests/unit/_metadata_test.py index 77b3901261..2cb13f236b 100644 --- a/src/python/grpcio/tests/unit/_metadata_test.py +++ b/src/python/grpcio/tests/unit/_metadata_test.py @@ -173,8 +173,8 @@ class MetadataTest(unittest.TestCase): def testUnaryUnary(self): multi_callable = self._channel.unary_unary(_UNARY_UNARY) - unused_response, call = multi_callable( - _REQUEST, metadata=_CLIENT_METADATA, with_call=True) + unused_response, call = multi_callable.with_call( + _REQUEST, metadata=_CLIENT_METADATA) self.assertTrue(test_common.metadata_transmitted( _SERVER_INITIAL_METADATA, call.initial_metadata())) self.assertTrue(test_common.metadata_transmitted( @@ -192,9 +192,9 @@ class MetadataTest(unittest.TestCase): def testStreamUnary(self): multi_callable = self._channel.stream_unary(_STREAM_UNARY) - unused_response, call = multi_callable( + unused_response, call = multi_callable.with_call( [_REQUEST] * test_constants.STREAM_LENGTH, - metadata=_CLIENT_METADATA, with_call=True) + metadata=_CLIENT_METADATA) self.assertTrue(test_common.metadata_transmitted( _SERVER_INITIAL_METADATA, call.initial_metadata())) self.assertTrue(test_common.metadata_transmitted( |