title: How to write unit tests for your GRPC server in Python?
body: <p>I would like to use Python <code>unittest</code> to write tests for my GRPC server implementation. I have found <a href="https://pypi.org/project/grpcio-testing/" rel="noreferrer">grpcio-testing</a> package but I could not find any documentation how to use this.</p>
  
  <p>Let's say that I have the following <a href="https://github.com/grpc/grpc/blob/master/examples/python/helloworld/greeter_server.py" rel="noreferrer">server</a>:</p>
  
  <pre><code>import helloworld_pb2
  import helloworld_pb2_grpc
  
  
  class Greeter(helloworld_pb2_grpc.GreeterServicer):    
      def SayHello(self, request, context):
          return helloworld_pb2.HelloReply(message='Hello, %s!' % request.name)
  </code></pre>
  
  <p>How do I create an unit test to call <code>SayHello</code> and check the response?</p>