14 """Tests of the error handling example."""
19 from tests
import bazel_namespace_package_hack
20 bazel_namespace_package_hack.sys_path_to_site_dir_hack()
29 from examples.protos
import helloworld_pb2_grpc
30 from examples.python.errors
import client
as error_handling_client
31 from examples.python.errors
import server
as error_handling_server
37 self._server, port = error_handling_server.create_server(
'[::]:0')
43 self._server.
stop(
None)
47 error_handling_client.process(stub)
48 error_handling_client.process(stub)
52 if __name__ ==
'__main__':
54 unittest.main(verbosity=2)