resources.certificate_chain())]))
self.server.start()
self.stub = test_pb2_grpc.TestServiceStub(
- grpc.secure_channel('localhost:{}'.format(port),
- grpc.ssl_channel_credentials(
- resources.test_root_certificates()), ((
- 'grpc.ssl_target_name_override',
- _SERVER_HOST_OVERRIDE,
- ),)))
+ grpc.secure_channel(
+ 'localhost:{}'.format(port),
+ grpc.ssl_channel_credentials(
+ resources.test_root_certificates()), ((
+ 'grpc.ssl_target_name_override',
+ _SERVER_HOST_OVERRIDE,
+ ),)))
def tearDown(self):
self.server.stop(None)