Merge pull request #22452 from lidizheng/fix-call-test

[Aio] Fix call_test: Assert with public API instead of private API
pull/22459/head
Lidi Zheng 5 years ago committed by GitHub
commit 1d46c0d4be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/python/grpcio_tests/tests_aio/unit/call_test.py

@ -209,7 +209,7 @@ class TestUnaryUnaryCall(_MulticallableTestMixin, AioTestBase):
grpc.access_token_call_credentials("def"),
)
with self.assertRaisesRegex(
grpc._cygrpc.UsageError,
aio.UsageError,
"Call credentials are only valid on secure channels"):
self._stub.UnaryCall(messages_pb2.SimpleRequest(),
credentials=call_credentials)

Loading…
Cancel
Save