grpc_testing.html 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>gRPC Testing &#8212; gRPC Python 1.36.1 documentation</title>
  7. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
  9. <script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
  10. <script src="_static/jquery.js"></script>
  11. <script src="_static/underscore.js"></script>
  12. <script src="_static/doctools.js"></script>
  13. <link rel="index" title="Index" href="genindex.html" />
  14. <link rel="search" title="Search" href="search.html" />
  15. <link rel="next" title="Glossary" href="glossary.html" />
  16. <link rel="prev" title="gRPC Status" href="grpc_status.html" />
  17. <link rel="stylesheet" href="_static/custom.css" type="text/css" />
  18. <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
  19. </head><body>
  20. <div class="document">
  21. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  22. <div class="sphinxsidebarwrapper">
  23. <h1 class="logo"><a href="index.html">gRPC Python</a></h1>
  24. <p class="blurb">1.36.1</p>
  25. <h3>Navigation</h3>
  26. <p class="caption"><span class="caption-text">Contents:</span></p>
  27. <ul class="current">
  28. <li class="toctree-l1"><a class="reference internal" href="grpc.html">gRPC</a></li>
  29. <li class="toctree-l1"><a class="reference internal" href="grpc_asyncio.html">gRPC AsyncIO API</a></li>
  30. <li class="toctree-l1"><a class="reference internal" href="grpc_channelz.html">gRPC Channelz</a></li>
  31. <li class="toctree-l1"><a class="reference internal" href="grpc_health_checking.html">gRPC Health Checking</a></li>
  32. <li class="toctree-l1"><a class="reference internal" href="grpc_reflection.html">gRPC Reflection</a></li>
  33. <li class="toctree-l1"><a class="reference internal" href="grpc_status.html">gRPC Status</a></li>
  34. <li class="toctree-l1 current"><a class="current reference internal" href="#">gRPC Testing</a><ul>
  35. <li class="toctree-l2"><a class="reference internal" href="#module-grpc_testing">Module Contents</a></li>
  36. </ul>
  37. </li>
  38. <li class="toctree-l1"><a class="reference internal" href="glossary.html">Glossary</a></li>
  39. </ul>
  40. <div class="relations">
  41. <h3>Related Topics</h3>
  42. <ul>
  43. <li><a href="index.html">Documentation overview</a><ul>
  44. <li>Previous: <a href="grpc_status.html" title="previous chapter">gRPC Status</a></li>
  45. <li>Next: <a href="glossary.html" title="next chapter">Glossary</a></li>
  46. </ul></li>
  47. </ul>
  48. </div>
  49. <div id="searchbox" style="display: none" role="search">
  50. <h3 id="searchlabel">Quick search</h3>
  51. <div class="searchformwrapper">
  52. <form class="search" action="search.html" method="get">
  53. <input type="text" name="q" aria-labelledby="searchlabel" />
  54. <input type="submit" value="Go" />
  55. </form>
  56. </div>
  57. </div>
  58. <script>$('#searchbox').show(0);</script>
  59. </div>
  60. </div>
  61. <div class="documentwrapper">
  62. <div class="bodywrapper">
  63. <div class="body" role="main">
  64. <div class="section" id="grpc-testing">
  65. <h1>gRPC Testing<a class="headerlink" href="#grpc-testing" title="Permalink to this headline">¶</a></h1>
  66. <div class="section" id="module-grpc_testing">
  67. <span id="module-contents"></span><h2>Module Contents<a class="headerlink" href="#module-grpc_testing" title="Permalink to this headline">¶</a></h2>
  68. <p>Objects for use in testing gRPC Python-using application code.</p>
  69. <dl class="py class">
  70. <dt id="grpc_testing.Channel">
  71. <em class="property"><span class="pre">class</span> </em><code class="sig-prename descclassname"><span class="pre">grpc_testing.</span></code><code class="sig-name descname"><span class="pre">Channel</span></code><a class="reference internal" href="_modules/grpc_testing.html#Channel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.Channel" title="Permalink to this definition">¶</a></dt>
  72. <dd><p>A grpc.Channel double with which to test a system that invokes RPCs.</p>
  73. <dl class="py method">
  74. <dt id="grpc_testing.Channel.take_stream_stream">
  75. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">take_stream_stream</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">method_descriptor</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#Channel.take_stream_stream"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.Channel.take_stream_stream" title="Permalink to this definition">¶</a></dt>
  76. <dd><p>Draws an RPC currently being made by the system under test.</p>
  77. <p>If the given descriptor does not identify any RPC currently being made
  78. by the system under test, this method blocks until the system under
  79. test invokes such an RPC.</p>
  80. <dl class="field-list simple">
  81. <dt class="field-odd">Parameters</dt>
  82. <dd class="field-odd"><p><strong>method_descriptor</strong> – A descriptor.MethodDescriptor describing a
  83. stream-stream RPC method.</p>
  84. </dd>
  85. <dt class="field-even">Returns</dt>
  86. <dd class="field-even"><p><dl class="simple">
  87. <dt>A (invocation_metadata, stream_stream_channel_rpc) tuple of the RPC’s</dt><dd><p>invocation metadata and a StreamStreamChannelRpc with which to
  88. “play server” for the RPC.</p>
  89. </dd>
  90. </dl>
  91. </p>
  92. </dd>
  93. </dl>
  94. </dd></dl>
  95. <dl class="py method">
  96. <dt id="grpc_testing.Channel.take_stream_unary">
  97. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">take_stream_unary</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">method_descriptor</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#Channel.take_stream_unary"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.Channel.take_stream_unary" title="Permalink to this definition">¶</a></dt>
  98. <dd><p>Draws an RPC currently being made by the system under test.</p>
  99. <p>If the given descriptor does not identify any RPC currently being made
  100. by the system under test, this method blocks until the system under
  101. test invokes such an RPC.</p>
  102. <dl class="field-list simple">
  103. <dt class="field-odd">Parameters</dt>
  104. <dd class="field-odd"><p><strong>method_descriptor</strong> – A descriptor.MethodDescriptor describing a
  105. stream-unary RPC method.</p>
  106. </dd>
  107. <dt class="field-even">Returns</dt>
  108. <dd class="field-even"><p><dl class="simple">
  109. <dt>A (invocation_metadata, stream_unary_channel_rpc) tuple of the RPC’s</dt><dd><p>invocation metadata and a StreamUnaryChannelRpc with which to “play
  110. server” for the RPC.</p>
  111. </dd>
  112. </dl>
  113. </p>
  114. </dd>
  115. </dl>
  116. </dd></dl>
  117. <dl class="py method">
  118. <dt id="grpc_testing.Channel.take_unary_stream">
  119. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">take_unary_stream</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">method_descriptor</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#Channel.take_unary_stream"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.Channel.take_unary_stream" title="Permalink to this definition">¶</a></dt>
  120. <dd><p>Draws an RPC currently being made by the system under test.</p>
  121. <p>If the given descriptor does not identify any RPC currently being made
  122. by the system under test, this method blocks until the system under
  123. test invokes such an RPC.</p>
  124. <dl class="field-list simple">
  125. <dt class="field-odd">Parameters</dt>
  126. <dd class="field-odd"><p><strong>method_descriptor</strong> – A descriptor.MethodDescriptor describing a
  127. unary-stream RPC method.</p>
  128. </dd>
  129. <dt class="field-even">Returns</dt>
  130. <dd class="field-even"><p><dl class="simple">
  131. <dt>A (invocation_metadata, request, unary_stream_channel_rpc) tuple of</dt><dd><p>the RPC’s invocation metadata, its request, and a
  132. UnaryStreamChannelRpc with which to “play server” for the RPC.</p>
  133. </dd>
  134. </dl>
  135. </p>
  136. </dd>
  137. </dl>
  138. </dd></dl>
  139. <dl class="py method">
  140. <dt id="grpc_testing.Channel.take_unary_unary">
  141. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">take_unary_unary</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">method_descriptor</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#Channel.take_unary_unary"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.Channel.take_unary_unary" title="Permalink to this definition">¶</a></dt>
  142. <dd><p>Draws an RPC currently being made by the system under test.</p>
  143. <p>If the given descriptor does not identify any RPC currently being made
  144. by the system under test, this method blocks until the system under
  145. test invokes such an RPC.</p>
  146. <dl class="field-list simple">
  147. <dt class="field-odd">Parameters</dt>
  148. <dd class="field-odd"><p><strong>method_descriptor</strong> – A descriptor.MethodDescriptor describing a
  149. unary-unary RPC method.</p>
  150. </dd>
  151. <dt class="field-even">Returns</dt>
  152. <dd class="field-even"><p><dl class="simple">
  153. <dt>A (invocation_metadata, request, unary_unary_channel_rpc) tuple of</dt><dd><p>the RPC’s invocation metadata, its request, and a
  154. UnaryUnaryChannelRpc with which to “play server” for the RPC.</p>
  155. </dd>
  156. </dl>
  157. </p>
  158. </dd>
  159. </dl>
  160. </dd></dl>
  161. </dd></dl>
  162. <dl class="py class">
  163. <dt id="grpc_testing.Server">
  164. <em class="property"><span class="pre">class</span> </em><code class="sig-prename descclassname"><span class="pre">grpc_testing.</span></code><code class="sig-name descname"><span class="pre">Server</span></code><a class="reference internal" href="_modules/grpc_testing.html#Server"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.Server" title="Permalink to this definition">¶</a></dt>
  165. <dd><p>A server with which to test a system that services RPCs.</p>
  166. <dl class="py method">
  167. <dt id="grpc_testing.Server.invoke_stream_stream">
  168. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">invoke_stream_stream</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">method_descriptor</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">invocation_metadata</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timeout</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#Server.invoke_stream_stream"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.Server.invoke_stream_stream" title="Permalink to this definition">¶</a></dt>
  169. <dd><p>Invokes an RPC to be serviced by the system under test.</p>
  170. <dl class="field-list simple">
  171. <dt class="field-odd">Parameters</dt>
  172. <dd class="field-odd"><ul class="simple">
  173. <li><p><strong>method_descriptor</strong> – A descriptor.MethodDescriptor describing a stream-stream
  174. RPC method.</p></li>
  175. <li><p><strong>invocation_metadata</strong> – The RPC’s invocation metadata.</p></li>
  176. <li><p><strong>timeout</strong> – A duration of time in seconds for the RPC or None to
  177. indicate that the RPC has no time limit.</p></li>
  178. </ul>
  179. </dd>
  180. <dt class="field-even">Returns</dt>
  181. <dd class="field-even"><p>A StreamStreamServerRpc with which to “play client” for the RPC.</p>
  182. </dd>
  183. </dl>
  184. </dd></dl>
  185. <dl class="py method">
  186. <dt id="grpc_testing.Server.invoke_stream_unary">
  187. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">invoke_stream_unary</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">method_descriptor</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">invocation_metadata</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timeout</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#Server.invoke_stream_unary"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.Server.invoke_stream_unary" title="Permalink to this definition">¶</a></dt>
  188. <dd><p>Invokes an RPC to be serviced by the system under test.</p>
  189. <dl class="field-list simple">
  190. <dt class="field-odd">Parameters</dt>
  191. <dd class="field-odd"><ul class="simple">
  192. <li><p><strong>method_descriptor</strong> – A descriptor.MethodDescriptor describing a stream-unary
  193. RPC method.</p></li>
  194. <li><p><strong>invocation_metadata</strong> – The RPC’s invocation metadata.</p></li>
  195. <li><p><strong>timeout</strong> – A duration of time in seconds for the RPC or None to
  196. indicate that the RPC has no time limit.</p></li>
  197. </ul>
  198. </dd>
  199. <dt class="field-even">Returns</dt>
  200. <dd class="field-even"><p>A StreamUnaryServerRpc with which to “play client” for the RPC.</p>
  201. </dd>
  202. </dl>
  203. </dd></dl>
  204. <dl class="py method">
  205. <dt id="grpc_testing.Server.invoke_unary_stream">
  206. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">invoke_unary_stream</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">method_descriptor</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">invocation_metadata</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">request</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timeout</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#Server.invoke_unary_stream"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.Server.invoke_unary_stream" title="Permalink to this definition">¶</a></dt>
  207. <dd><p>Invokes an RPC to be serviced by the system under test.</p>
  208. <dl class="field-list simple">
  209. <dt class="field-odd">Parameters</dt>
  210. <dd class="field-odd"><ul class="simple">
  211. <li><p><strong>method_descriptor</strong> – A descriptor.MethodDescriptor describing a unary-stream
  212. RPC method.</p></li>
  213. <li><p><strong>invocation_metadata</strong> – The RPC’s invocation metadata.</p></li>
  214. <li><p><strong>request</strong> – The RPC’s request.</p></li>
  215. <li><p><strong>timeout</strong> – A duration of time in seconds for the RPC or None to
  216. indicate that the RPC has no time limit.</p></li>
  217. </ul>
  218. </dd>
  219. <dt class="field-even">Returns</dt>
  220. <dd class="field-even"><p>A UnaryStreamServerRpc with which to “play client” for the RPC.</p>
  221. </dd>
  222. </dl>
  223. </dd></dl>
  224. <dl class="py method">
  225. <dt id="grpc_testing.Server.invoke_unary_unary">
  226. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">invoke_unary_unary</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">method_descriptor</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">invocation_metadata</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">request</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timeout</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#Server.invoke_unary_unary"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.Server.invoke_unary_unary" title="Permalink to this definition">¶</a></dt>
  227. <dd><p>Invokes an RPC to be serviced by the system under test.</p>
  228. <dl class="field-list simple">
  229. <dt class="field-odd">Parameters</dt>
  230. <dd class="field-odd"><ul class="simple">
  231. <li><p><strong>method_descriptor</strong> – A descriptor.MethodDescriptor describing a unary-unary
  232. RPC method.</p></li>
  233. <li><p><strong>invocation_metadata</strong> – The RPC’s invocation metadata.</p></li>
  234. <li><p><strong>request</strong> – The RPC’s request.</p></li>
  235. <li><p><strong>timeout</strong> – A duration of time in seconds for the RPC or None to
  236. indicate that the RPC has no time limit.</p></li>
  237. </ul>
  238. </dd>
  239. <dt class="field-even">Returns</dt>
  240. <dd class="field-even"><p>A UnaryUnaryServerRpc with which to “play client” for the RPC.</p>
  241. </dd>
  242. </dl>
  243. </dd></dl>
  244. </dd></dl>
  245. <dl class="py class">
  246. <dt id="grpc_testing.StreamStreamChannelRpc">
  247. <em class="property"><span class="pre">class</span> </em><code class="sig-prename descclassname"><span class="pre">grpc_testing.</span></code><code class="sig-name descname"><span class="pre">StreamStreamChannelRpc</span></code><a class="reference internal" href="_modules/grpc_testing.html#StreamStreamChannelRpc"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamStreamChannelRpc" title="Permalink to this definition">¶</a></dt>
  248. <dd><p>Fixture for a stream-stream RPC invoked by a system under test.</p>
  249. <p>Enables users to “play server” for the RPC.</p>
  250. <dl class="py method">
  251. <dt id="grpc_testing.StreamStreamChannelRpc.cancelled">
  252. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">cancelled</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamStreamChannelRpc.cancelled"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamStreamChannelRpc.cancelled" title="Permalink to this definition">¶</a></dt>
  253. <dd><p>Blocks until the system under test has cancelled the RPC.</p>
  254. </dd></dl>
  255. <dl class="py method">
  256. <dt id="grpc_testing.StreamStreamChannelRpc.requests_closed">
  257. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">requests_closed</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamStreamChannelRpc.requests_closed"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamStreamChannelRpc.requests_closed" title="Permalink to this definition">¶</a></dt>
  258. <dd><p>Blocks until the system under test has closed the request stream.</p>
  259. </dd></dl>
  260. <dl class="py method">
  261. <dt id="grpc_testing.StreamStreamChannelRpc.send_initial_metadata">
  262. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">send_initial_metadata</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">initial_metadata</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamStreamChannelRpc.send_initial_metadata"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamStreamChannelRpc.send_initial_metadata" title="Permalink to this definition">¶</a></dt>
  263. <dd><p>Sends the RPC’s initial metadata to the system under test.</p>
  264. <dl class="field-list simple">
  265. <dt class="field-odd">Parameters</dt>
  266. <dd class="field-odd"><p><strong>initial_metadata</strong> – The RPC’s initial metadata to be “sent” to the
  267. system under test.</p>
  268. </dd>
  269. </dl>
  270. </dd></dl>
  271. <dl class="py method">
  272. <dt id="grpc_testing.StreamStreamChannelRpc.send_response">
  273. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">send_response</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">response</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamStreamChannelRpc.send_response"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamStreamChannelRpc.send_response" title="Permalink to this definition">¶</a></dt>
  274. <dd><p>Sends a response to the system under test.</p>
  275. <dl class="field-list simple">
  276. <dt class="field-odd">Parameters</dt>
  277. <dd class="field-odd"><p><strong>response</strong> – A response messages to be “sent” to the system under test.</p>
  278. </dd>
  279. </dl>
  280. </dd></dl>
  281. <dl class="py method">
  282. <dt id="grpc_testing.StreamStreamChannelRpc.take_request">
  283. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">take_request</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamStreamChannelRpc.take_request"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamStreamChannelRpc.take_request" title="Permalink to this definition">¶</a></dt>
  284. <dd><p>Draws one of the requests added to the RPC by the system under test.</p>
  285. <p>This method blocks until the system under test has added to the RPC
  286. the request to be returned.</p>
  287. <p>Successive calls to this method return requests in the same order in
  288. which the system under test added them to the RPC.</p>
  289. <dl class="field-list simple">
  290. <dt class="field-odd">Returns</dt>
  291. <dd class="field-odd"><p>A request message added to the RPC by the system under test.</p>
  292. </dd>
  293. </dl>
  294. </dd></dl>
  295. <dl class="py method">
  296. <dt id="grpc_testing.StreamStreamChannelRpc.terminate">
  297. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">terminate</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">trailing_metadata</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">code</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">details</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamStreamChannelRpc.terminate"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamStreamChannelRpc.terminate" title="Permalink to this definition">¶</a></dt>
  298. <dd><p>Terminates the RPC.</p>
  299. <dl class="field-list simple">
  300. <dt class="field-odd">Parameters</dt>
  301. <dd class="field-odd"><ul class="simple">
  302. <li><p><strong>trailing_metadata</strong> – The RPC’s trailing metadata.</p></li>
  303. <li><p><strong>code</strong> – The RPC’s status code.</p></li>
  304. <li><p><strong>details</strong> – The RPC’s status details.</p></li>
  305. </ul>
  306. </dd>
  307. </dl>
  308. </dd></dl>
  309. </dd></dl>
  310. <dl class="py class">
  311. <dt id="grpc_testing.StreamStreamServerRpc">
  312. <em class="property"><span class="pre">class</span> </em><code class="sig-prename descclassname"><span class="pre">grpc_testing.</span></code><code class="sig-name descname"><span class="pre">StreamStreamServerRpc</span></code><a class="reference internal" href="_modules/grpc_testing.html#StreamStreamServerRpc"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamStreamServerRpc" title="Permalink to this definition">¶</a></dt>
  313. <dd><p>Fixture for a stream-stream RPC serviced by a system under test.</p>
  314. <p>Enables users to “play client” for the RPC.</p>
  315. <dl class="py method">
  316. <dt id="grpc_testing.StreamStreamServerRpc.cancel">
  317. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">cancel</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamStreamServerRpc.cancel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamStreamServerRpc.cancel" title="Permalink to this definition">¶</a></dt>
  318. <dd><p>Cancels the RPC.</p>
  319. </dd></dl>
  320. <dl class="py method">
  321. <dt id="grpc_testing.StreamStreamServerRpc.initial_metadata">
  322. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">initial_metadata</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamStreamServerRpc.initial_metadata"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamStreamServerRpc.initial_metadata" title="Permalink to this definition">¶</a></dt>
  323. <dd><p>Accesses the initial metadata emitted by the system under test.</p>
  324. <p>This method blocks until the system under test has added initial
  325. metadata to the RPC (or has provided one or more response messages or
  326. has terminated the RPC, either of which will cause gRPC Python to
  327. synthesize initial metadata for the RPC).</p>
  328. <dl class="field-list simple">
  329. <dt class="field-odd">Returns</dt>
  330. <dd class="field-odd"><p>The initial metadata for the RPC.</p>
  331. </dd>
  332. </dl>
  333. </dd></dl>
  334. <dl class="py method">
  335. <dt id="grpc_testing.StreamStreamServerRpc.requests_closed">
  336. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">requests_closed</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamStreamServerRpc.requests_closed"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamStreamServerRpc.requests_closed" title="Permalink to this definition">¶</a></dt>
  337. <dd><p>Indicates the end of the RPC’s request stream.</p>
  338. </dd></dl>
  339. <dl class="py method">
  340. <dt id="grpc_testing.StreamStreamServerRpc.send_request">
  341. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">send_request</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">request</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamStreamServerRpc.send_request"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamStreamServerRpc.send_request" title="Permalink to this definition">¶</a></dt>
  342. <dd><p>Sends a request to the system under test.</p>
  343. <dl class="field-list simple">
  344. <dt class="field-odd">Parameters</dt>
  345. <dd class="field-odd"><p><strong>request</strong> – A request message for the RPC to be “sent” to the system
  346. under test.</p>
  347. </dd>
  348. </dl>
  349. </dd></dl>
  350. <dl class="py method">
  351. <dt id="grpc_testing.StreamStreamServerRpc.take_response">
  352. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">take_response</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamStreamServerRpc.take_response"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamStreamServerRpc.take_response" title="Permalink to this definition">¶</a></dt>
  353. <dd><p>Draws one of the responses added to the RPC by the system under test.</p>
  354. <p>Successive calls to this method return responses in the same order in
  355. which the system under test added them to the RPC.</p>
  356. <dl class="field-list simple">
  357. <dt class="field-odd">Returns</dt>
  358. <dd class="field-odd"><p>A response message added to the RPC by the system under test.</p>
  359. </dd>
  360. </dl>
  361. </dd></dl>
  362. <dl class="py method">
  363. <dt id="grpc_testing.StreamStreamServerRpc.termination">
  364. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">termination</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamStreamServerRpc.termination"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamStreamServerRpc.termination" title="Permalink to this definition">¶</a></dt>
  365. <dd><p>Blocks until the system under test has terminated the RPC.</p>
  366. <dl class="field-list simple">
  367. <dt class="field-odd">Returns</dt>
  368. <dd class="field-odd"><p><dl class="simple">
  369. <dt>A (trailing_metadata, code, details) sequence with the RPC’s trailing</dt><dd><p>metadata, code, and details.</p>
  370. </dd>
  371. </dl>
  372. </p>
  373. </dd>
  374. </dl>
  375. </dd></dl>
  376. </dd></dl>
  377. <dl class="py class">
  378. <dt id="grpc_testing.StreamUnaryChannelRpc">
  379. <em class="property"><span class="pre">class</span> </em><code class="sig-prename descclassname"><span class="pre">grpc_testing.</span></code><code class="sig-name descname"><span class="pre">StreamUnaryChannelRpc</span></code><a class="reference internal" href="_modules/grpc_testing.html#StreamUnaryChannelRpc"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamUnaryChannelRpc" title="Permalink to this definition">¶</a></dt>
  380. <dd><p>Fixture for a stream-unary RPC invoked by a system under test.</p>
  381. <p>Enables users to “play server” for the RPC.</p>
  382. <dl class="py method">
  383. <dt id="grpc_testing.StreamUnaryChannelRpc.cancelled">
  384. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">cancelled</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamUnaryChannelRpc.cancelled"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamUnaryChannelRpc.cancelled" title="Permalink to this definition">¶</a></dt>
  385. <dd><p>Blocks until the system under test has cancelled the RPC.</p>
  386. </dd></dl>
  387. <dl class="py method">
  388. <dt id="grpc_testing.StreamUnaryChannelRpc.requests_closed">
  389. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">requests_closed</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamUnaryChannelRpc.requests_closed"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamUnaryChannelRpc.requests_closed" title="Permalink to this definition">¶</a></dt>
  390. <dd><p>Blocks until the system under test has closed the request stream.</p>
  391. </dd></dl>
  392. <dl class="py method">
  393. <dt id="grpc_testing.StreamUnaryChannelRpc.send_initial_metadata">
  394. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">send_initial_metadata</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">initial_metadata</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamUnaryChannelRpc.send_initial_metadata"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamUnaryChannelRpc.send_initial_metadata" title="Permalink to this definition">¶</a></dt>
  395. <dd><p>Sends the RPC’s initial metadata to the system under test.</p>
  396. <dl class="field-list simple">
  397. <dt class="field-odd">Parameters</dt>
  398. <dd class="field-odd"><p><strong>initial_metadata</strong> – The RPC’s initial metadata to be “sent” to
  399. the system under test.</p>
  400. </dd>
  401. </dl>
  402. </dd></dl>
  403. <dl class="py method">
  404. <dt id="grpc_testing.StreamUnaryChannelRpc.take_request">
  405. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">take_request</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamUnaryChannelRpc.take_request"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamUnaryChannelRpc.take_request" title="Permalink to this definition">¶</a></dt>
  406. <dd><p>Draws one of the requests added to the RPC by the system under test.</p>
  407. <p>This method blocks until the system under test has added to the RPC
  408. the request to be returned.</p>
  409. <p>Successive calls to this method return requests in the same order in
  410. which the system under test added them to the RPC.</p>
  411. <dl class="field-list simple">
  412. <dt class="field-odd">Returns</dt>
  413. <dd class="field-odd"><p>A request message added to the RPC by the system under test.</p>
  414. </dd>
  415. </dl>
  416. </dd></dl>
  417. <dl class="py method">
  418. <dt id="grpc_testing.StreamUnaryChannelRpc.terminate">
  419. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">terminate</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">response</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">trailing_metadata</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">code</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">details</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamUnaryChannelRpc.terminate"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamUnaryChannelRpc.terminate" title="Permalink to this definition">¶</a></dt>
  420. <dd><p>Terminates the RPC.</p>
  421. <dl class="field-list simple">
  422. <dt class="field-odd">Parameters</dt>
  423. <dd class="field-odd"><ul class="simple">
  424. <li><p><strong>response</strong> – The response for the RPC.</p></li>
  425. <li><p><strong>trailing_metadata</strong> – The RPC’s trailing metadata.</p></li>
  426. <li><p><strong>code</strong> – The RPC’s status code.</p></li>
  427. <li><p><strong>details</strong> – The RPC’s status details.</p></li>
  428. </ul>
  429. </dd>
  430. </dl>
  431. </dd></dl>
  432. </dd></dl>
  433. <dl class="py class">
  434. <dt id="grpc_testing.StreamUnaryServerRpc">
  435. <em class="property"><span class="pre">class</span> </em><code class="sig-prename descclassname"><span class="pre">grpc_testing.</span></code><code class="sig-name descname"><span class="pre">StreamUnaryServerRpc</span></code><a class="reference internal" href="_modules/grpc_testing.html#StreamUnaryServerRpc"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamUnaryServerRpc" title="Permalink to this definition">¶</a></dt>
  436. <dd><p>Fixture for a stream-unary RPC serviced by a system under test.</p>
  437. <p>Enables users to “play client” for the RPC.</p>
  438. <dl class="py method">
  439. <dt id="grpc_testing.StreamUnaryServerRpc.cancel">
  440. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">cancel</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamUnaryServerRpc.cancel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamUnaryServerRpc.cancel" title="Permalink to this definition">¶</a></dt>
  441. <dd><p>Cancels the RPC.</p>
  442. </dd></dl>
  443. <dl class="py method">
  444. <dt id="grpc_testing.StreamUnaryServerRpc.initial_metadata">
  445. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">initial_metadata</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamUnaryServerRpc.initial_metadata"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamUnaryServerRpc.initial_metadata" title="Permalink to this definition">¶</a></dt>
  446. <dd><p>Accesses the initial metadata emitted by the system under test.</p>
  447. <p>This method blocks until the system under test has added initial
  448. metadata to the RPC (or has provided one or more response messages or
  449. has terminated the RPC, either of which will cause gRPC Python to
  450. synthesize initial metadata for the RPC).</p>
  451. <dl class="field-list simple">
  452. <dt class="field-odd">Returns</dt>
  453. <dd class="field-odd"><p>The initial metadata for the RPC.</p>
  454. </dd>
  455. </dl>
  456. </dd></dl>
  457. <dl class="py method">
  458. <dt id="grpc_testing.StreamUnaryServerRpc.requests_closed">
  459. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">requests_closed</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamUnaryServerRpc.requests_closed"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamUnaryServerRpc.requests_closed" title="Permalink to this definition">¶</a></dt>
  460. <dd><p>Indicates the end of the RPC’s request stream.</p>
  461. </dd></dl>
  462. <dl class="py method">
  463. <dt id="grpc_testing.StreamUnaryServerRpc.send_request">
  464. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">send_request</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">request</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamUnaryServerRpc.send_request"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamUnaryServerRpc.send_request" title="Permalink to this definition">¶</a></dt>
  465. <dd><p>Sends a request to the system under test.</p>
  466. <dl class="field-list simple">
  467. <dt class="field-odd">Parameters</dt>
  468. <dd class="field-odd"><p><strong>request</strong> – A request message for the RPC to be “sent” to the system
  469. under test.</p>
  470. </dd>
  471. </dl>
  472. </dd></dl>
  473. <dl class="py method">
  474. <dt id="grpc_testing.StreamUnaryServerRpc.termination">
  475. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">termination</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#StreamUnaryServerRpc.termination"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.StreamUnaryServerRpc.termination" title="Permalink to this definition">¶</a></dt>
  476. <dd><p>Blocks until the system under test has terminated the RPC.</p>
  477. <dl class="field-list simple">
  478. <dt class="field-odd">Returns</dt>
  479. <dd class="field-odd"><p><dl class="simple">
  480. <dt>A (response, trailing_metadata, code, details) sequence with the RPC’s</dt><dd><p>response, trailing metadata, code, and details.</p>
  481. </dd>
  482. </dl>
  483. </p>
  484. </dd>
  485. </dl>
  486. </dd></dl>
  487. </dd></dl>
  488. <dl class="py class">
  489. <dt id="grpc_testing.Time">
  490. <em class="property"><span class="pre">class</span> </em><code class="sig-prename descclassname"><span class="pre">grpc_testing.</span></code><code class="sig-name descname"><span class="pre">Time</span></code><a class="reference internal" href="_modules/grpc_testing.html#Time"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.Time" title="Permalink to this definition">¶</a></dt>
  491. <dd><p>A simulation of time.</p>
  492. <p>Implementations needn’t be connected with real time as provided by the
  493. Python interpreter, but as long as systems under test use
  494. RpcContext.is_active and RpcContext.time_remaining for querying RPC liveness
  495. implementations may be used to change passage of time in tests.</p>
  496. <dl class="py method">
  497. <dt id="grpc_testing.Time.call_at">
  498. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">call_at</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">behavior</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">time</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#Time.call_at"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.Time.call_at" title="Permalink to this definition">¶</a></dt>
  499. <dd><p>Adds a behavior to be called at a specific time.</p>
  500. <dl class="field-list simple">
  501. <dt class="field-odd">Parameters</dt>
  502. <dd class="field-odd"><ul class="simple">
  503. <li><p><strong>behavior</strong> – A behavior to be called with no arguments.</p></li>
  504. <li><p><strong>time</strong> – The test time at which to call the behavior.</p></li>
  505. </ul>
  506. </dd>
  507. <dt class="field-even">Returns</dt>
  508. <dd class="field-even"><p><dl class="simple">
  509. <dt>A grpc.Future with which the call of the behavior may be cancelled</dt><dd><p>before it is executed.</p>
  510. </dd>
  511. </dl>
  512. </p>
  513. </dd>
  514. </dl>
  515. </dd></dl>
  516. <dl class="py method">
  517. <dt id="grpc_testing.Time.call_in">
  518. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">call_in</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">behavior</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">delay</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#Time.call_in"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.Time.call_in" title="Permalink to this definition">¶</a></dt>
  519. <dd><p>Adds a behavior to be called after some time.</p>
  520. <dl class="field-list simple">
  521. <dt class="field-odd">Parameters</dt>
  522. <dd class="field-odd"><ul class="simple">
  523. <li><p><strong>behavior</strong> – A behavior to be called with no arguments.</p></li>
  524. <li><p><strong>delay</strong> – A duration of time in seconds after which to call the behavior.</p></li>
  525. </ul>
  526. </dd>
  527. <dt class="field-even">Returns</dt>
  528. <dd class="field-even"><p><dl class="simple">
  529. <dt>A grpc.Future with which the call of the behavior may be cancelled</dt><dd><p>before it is executed.</p>
  530. </dd>
  531. </dl>
  532. </p>
  533. </dd>
  534. </dl>
  535. </dd></dl>
  536. <dl class="py method">
  537. <dt id="grpc_testing.Time.sleep_for">
  538. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">sleep_for</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">duration</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#Time.sleep_for"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.Time.sleep_for" title="Permalink to this definition">¶</a></dt>
  539. <dd><p>Blocks for some length of test time.</p>
  540. <dl class="field-list simple">
  541. <dt class="field-odd">Parameters</dt>
  542. <dd class="field-odd"><p><strong>duration</strong> – A duration of test time in seconds for which to block.</p>
  543. </dd>
  544. </dl>
  545. </dd></dl>
  546. <dl class="py method">
  547. <dt id="grpc_testing.Time.sleep_until">
  548. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">sleep_until</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">time</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#Time.sleep_until"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.Time.sleep_until" title="Permalink to this definition">¶</a></dt>
  549. <dd><p>Blocks until some test time.</p>
  550. <dl class="field-list simple">
  551. <dt class="field-odd">Parameters</dt>
  552. <dd class="field-odd"><p><strong>time</strong> – The test time until which to block.</p>
  553. </dd>
  554. </dl>
  555. </dd></dl>
  556. <dl class="py method">
  557. <dt id="grpc_testing.Time.time">
  558. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">time</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#Time.time"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.Time.time" title="Permalink to this definition">¶</a></dt>
  559. <dd><p>Accesses the current test time.</p>
  560. <dl class="field-list simple">
  561. <dt class="field-odd">Returns</dt>
  562. <dd class="field-odd"><p>The current test time (over which this object has authority).</p>
  563. </dd>
  564. </dl>
  565. </dd></dl>
  566. </dd></dl>
  567. <dl class="py class">
  568. <dt id="grpc_testing.UnaryStreamChannelRpc">
  569. <em class="property"><span class="pre">class</span> </em><code class="sig-prename descclassname"><span class="pre">grpc_testing.</span></code><code class="sig-name descname"><span class="pre">UnaryStreamChannelRpc</span></code><a class="reference internal" href="_modules/grpc_testing.html#UnaryStreamChannelRpc"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryStreamChannelRpc" title="Permalink to this definition">¶</a></dt>
  570. <dd><p>Fixture for a unary-stream RPC invoked by a system under test.</p>
  571. <p>Enables users to “play server” for the RPC.</p>
  572. <dl class="py method">
  573. <dt id="grpc_testing.UnaryStreamChannelRpc.cancelled">
  574. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">cancelled</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#UnaryStreamChannelRpc.cancelled"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryStreamChannelRpc.cancelled" title="Permalink to this definition">¶</a></dt>
  575. <dd><p>Blocks until the system under test has cancelled the RPC.</p>
  576. </dd></dl>
  577. <dl class="py method">
  578. <dt id="grpc_testing.UnaryStreamChannelRpc.send_initial_metadata">
  579. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">send_initial_metadata</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">initial_metadata</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#UnaryStreamChannelRpc.send_initial_metadata"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryStreamChannelRpc.send_initial_metadata" title="Permalink to this definition">¶</a></dt>
  580. <dd><p>Sends the RPC’s initial metadata to the system under test.</p>
  581. <dl class="field-list simple">
  582. <dt class="field-odd">Parameters</dt>
  583. <dd class="field-odd"><p><strong>initial_metadata</strong> – The RPC’s initial metadata to be “sent” to
  584. the system under test.</p>
  585. </dd>
  586. </dl>
  587. </dd></dl>
  588. <dl class="py method">
  589. <dt id="grpc_testing.UnaryStreamChannelRpc.send_response">
  590. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">send_response</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">response</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#UnaryStreamChannelRpc.send_response"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryStreamChannelRpc.send_response" title="Permalink to this definition">¶</a></dt>
  591. <dd><p>Sends a response to the system under test.</p>
  592. <dl class="field-list simple">
  593. <dt class="field-odd">Parameters</dt>
  594. <dd class="field-odd"><p><strong>response</strong> – A response message to be “sent” to the system under test.</p>
  595. </dd>
  596. </dl>
  597. </dd></dl>
  598. <dl class="py method">
  599. <dt id="grpc_testing.UnaryStreamChannelRpc.terminate">
  600. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">terminate</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">trailing_metadata</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">code</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">details</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#UnaryStreamChannelRpc.terminate"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryStreamChannelRpc.terminate" title="Permalink to this definition">¶</a></dt>
  601. <dd><p>Terminates the RPC.</p>
  602. <dl class="field-list simple">
  603. <dt class="field-odd">Parameters</dt>
  604. <dd class="field-odd"><ul class="simple">
  605. <li><p><strong>trailing_metadata</strong> – The RPC’s trailing metadata.</p></li>
  606. <li><p><strong>code</strong> – The RPC’s status code.</p></li>
  607. <li><p><strong>details</strong> – The RPC’s status details.</p></li>
  608. </ul>
  609. </dd>
  610. </dl>
  611. </dd></dl>
  612. </dd></dl>
  613. <dl class="py class">
  614. <dt id="grpc_testing.UnaryStreamServerRpc">
  615. <em class="property"><span class="pre">class</span> </em><code class="sig-prename descclassname"><span class="pre">grpc_testing.</span></code><code class="sig-name descname"><span class="pre">UnaryStreamServerRpc</span></code><a class="reference internal" href="_modules/grpc_testing.html#UnaryStreamServerRpc"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryStreamServerRpc" title="Permalink to this definition">¶</a></dt>
  616. <dd><p>Fixture for a unary-stream RPC serviced by a system under test.</p>
  617. <p>Enables users to “play client” for the RPC.</p>
  618. <dl class="py method">
  619. <dt id="grpc_testing.UnaryStreamServerRpc.cancel">
  620. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">cancel</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#UnaryStreamServerRpc.cancel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryStreamServerRpc.cancel" title="Permalink to this definition">¶</a></dt>
  621. <dd><p>Cancels the RPC.</p>
  622. </dd></dl>
  623. <dl class="py method">
  624. <dt id="grpc_testing.UnaryStreamServerRpc.initial_metadata">
  625. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">initial_metadata</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#UnaryStreamServerRpc.initial_metadata"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryStreamServerRpc.initial_metadata" title="Permalink to this definition">¶</a></dt>
  626. <dd><p>Accesses the initial metadata emitted by the system under test.</p>
  627. <p>This method blocks until the system under test has added initial
  628. metadata to the RPC (or has provided one or more response messages or
  629. has terminated the RPC, either of which will cause gRPC Python to
  630. synthesize initial metadata for the RPC).</p>
  631. <dl class="field-list simple">
  632. <dt class="field-odd">Returns</dt>
  633. <dd class="field-odd"><p>The initial metadata for the RPC.</p>
  634. </dd>
  635. </dl>
  636. </dd></dl>
  637. <dl class="py method">
  638. <dt id="grpc_testing.UnaryStreamServerRpc.take_response">
  639. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">take_response</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#UnaryStreamServerRpc.take_response"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryStreamServerRpc.take_response" title="Permalink to this definition">¶</a></dt>
  640. <dd><p>Draws one of the responses added to the RPC by the system under test.</p>
  641. <p>Successive calls to this method return responses in the same order in
  642. which the system under test added them to the RPC.</p>
  643. <dl class="field-list simple">
  644. <dt class="field-odd">Returns</dt>
  645. <dd class="field-odd"><p>A response message added to the RPC by the system under test.</p>
  646. </dd>
  647. </dl>
  648. </dd></dl>
  649. <dl class="py method">
  650. <dt id="grpc_testing.UnaryStreamServerRpc.termination">
  651. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">termination</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#UnaryStreamServerRpc.termination"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryStreamServerRpc.termination" title="Permalink to this definition">¶</a></dt>
  652. <dd><p>Blocks until the system under test has terminated the RPC.</p>
  653. <dl class="field-list simple">
  654. <dt class="field-odd">Returns</dt>
  655. <dd class="field-odd"><p><dl class="simple">
  656. <dt>A (trailing_metadata, code, details) sequence with the RPC’s trailing</dt><dd><p>metadata, code, and details.</p>
  657. </dd>
  658. </dl>
  659. </p>
  660. </dd>
  661. </dl>
  662. </dd></dl>
  663. </dd></dl>
  664. <dl class="py class">
  665. <dt id="grpc_testing.UnaryUnaryChannelRpc">
  666. <em class="property"><span class="pre">class</span> </em><code class="sig-prename descclassname"><span class="pre">grpc_testing.</span></code><code class="sig-name descname"><span class="pre">UnaryUnaryChannelRpc</span></code><a class="reference internal" href="_modules/grpc_testing.html#UnaryUnaryChannelRpc"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryUnaryChannelRpc" title="Permalink to this definition">¶</a></dt>
  667. <dd><p>Fixture for a unary-unary RPC invoked by a system under test.</p>
  668. <p>Enables users to “play server” for the RPC.</p>
  669. <dl class="py method">
  670. <dt id="grpc_testing.UnaryUnaryChannelRpc.cancelled">
  671. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">cancelled</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#UnaryUnaryChannelRpc.cancelled"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryUnaryChannelRpc.cancelled" title="Permalink to this definition">¶</a></dt>
  672. <dd><p>Blocks until the system under test has cancelled the RPC.</p>
  673. </dd></dl>
  674. <dl class="py method">
  675. <dt id="grpc_testing.UnaryUnaryChannelRpc.send_initial_metadata">
  676. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">send_initial_metadata</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">initial_metadata</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#UnaryUnaryChannelRpc.send_initial_metadata"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryUnaryChannelRpc.send_initial_metadata" title="Permalink to this definition">¶</a></dt>
  677. <dd><p>Sends the RPC’s initial metadata to the system under test.</p>
  678. <dl class="field-list simple">
  679. <dt class="field-odd">Parameters</dt>
  680. <dd class="field-odd"><p><strong>initial_metadata</strong> – The RPC’s initial metadata to be “sent” to
  681. the system under test.</p>
  682. </dd>
  683. </dl>
  684. </dd></dl>
  685. <dl class="py method">
  686. <dt id="grpc_testing.UnaryUnaryChannelRpc.terminate">
  687. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">terminate</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">response</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">trailing_metadata</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">code</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">details</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#UnaryUnaryChannelRpc.terminate"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryUnaryChannelRpc.terminate" title="Permalink to this definition">¶</a></dt>
  688. <dd><p>Terminates the RPC.</p>
  689. <dl class="field-list simple">
  690. <dt class="field-odd">Parameters</dt>
  691. <dd class="field-odd"><ul class="simple">
  692. <li><p><strong>response</strong> – The response for the RPC.</p></li>
  693. <li><p><strong>trailing_metadata</strong> – The RPC’s trailing metadata.</p></li>
  694. <li><p><strong>code</strong> – The RPC’s status code.</p></li>
  695. <li><p><strong>details</strong> – The RPC’s status details.</p></li>
  696. </ul>
  697. </dd>
  698. </dl>
  699. </dd></dl>
  700. </dd></dl>
  701. <dl class="py class">
  702. <dt id="grpc_testing.UnaryUnaryServerRpc">
  703. <em class="property"><span class="pre">class</span> </em><code class="sig-prename descclassname"><span class="pre">grpc_testing.</span></code><code class="sig-name descname"><span class="pre">UnaryUnaryServerRpc</span></code><a class="reference internal" href="_modules/grpc_testing.html#UnaryUnaryServerRpc"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryUnaryServerRpc" title="Permalink to this definition">¶</a></dt>
  704. <dd><p>Fixture for a unary-unary RPC serviced by a system under test.</p>
  705. <p>Enables users to “play client” for the RPC.</p>
  706. <dl class="py method">
  707. <dt id="grpc_testing.UnaryUnaryServerRpc.cancel">
  708. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">cancel</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#UnaryUnaryServerRpc.cancel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryUnaryServerRpc.cancel" title="Permalink to this definition">¶</a></dt>
  709. <dd><p>Cancels the RPC.</p>
  710. </dd></dl>
  711. <dl class="py method">
  712. <dt id="grpc_testing.UnaryUnaryServerRpc.initial_metadata">
  713. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">initial_metadata</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#UnaryUnaryServerRpc.initial_metadata"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryUnaryServerRpc.initial_metadata" title="Permalink to this definition">¶</a></dt>
  714. <dd><p>Accesses the initial metadata emitted by the system under test.</p>
  715. <p>This method blocks until the system under test has added initial
  716. metadata to the RPC (or has provided one or more response messages or
  717. has terminated the RPC, either of which will cause gRPC Python to
  718. synthesize initial metadata for the RPC).</p>
  719. <dl class="field-list simple">
  720. <dt class="field-odd">Returns</dt>
  721. <dd class="field-odd"><p>The initial metadata for the RPC.</p>
  722. </dd>
  723. </dl>
  724. </dd></dl>
  725. <dl class="py method">
  726. <dt id="grpc_testing.UnaryUnaryServerRpc.termination">
  727. <em class="property"><span class="pre">abstract</span> </em><code class="sig-name descname"><span class="pre">termination</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#UnaryUnaryServerRpc.termination"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.UnaryUnaryServerRpc.termination" title="Permalink to this definition">¶</a></dt>
  728. <dd><p>Blocks until the system under test has terminated the RPC.</p>
  729. <dl class="field-list simple">
  730. <dt class="field-odd">Returns</dt>
  731. <dd class="field-odd"><p><dl class="simple">
  732. <dt>A (response, trailing_metadata, code, details) sequence with the RPC’s</dt><dd><p>response, trailing metadata, code, and details.</p>
  733. </dd>
  734. </dl>
  735. </p>
  736. </dd>
  737. </dl>
  738. </dd></dl>
  739. </dd></dl>
  740. <dl class="py function">
  741. <dt id="grpc_testing.channel">
  742. <code class="sig-prename descclassname"><span class="pre">grpc_testing.</span></code><code class="sig-name descname"><span class="pre">channel</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">service_descriptors</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">time</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#channel"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.channel" title="Permalink to this definition">¶</a></dt>
  743. <dd><p>Creates a Channel for use in tests of a gRPC Python-using system.</p>
  744. <dl class="field-list simple">
  745. <dt class="field-odd">Parameters</dt>
  746. <dd class="field-odd"><ul class="simple">
  747. <li><p><strong>service_descriptors</strong> – An iterable of descriptor.ServiceDescriptors
  748. describing the RPCs that will be made on the returned Channel by the
  749. system under test.</p></li>
  750. <li><p><strong>time</strong> – A Time to be used for tests.</p></li>
  751. </ul>
  752. </dd>
  753. <dt class="field-even">Returns</dt>
  754. <dd class="field-even"><p>A Channel for use in tests.</p>
  755. </dd>
  756. </dl>
  757. </dd></dl>
  758. <dl class="py function">
  759. <dt id="grpc_testing.server_from_dictionary">
  760. <code class="sig-prename descclassname"><span class="pre">grpc_testing.</span></code><code class="sig-name descname"><span class="pre">server_from_dictionary</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">descriptors_to_servicers</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">time</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#server_from_dictionary"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.server_from_dictionary" title="Permalink to this definition">¶</a></dt>
  761. <dd><p>Creates a Server for use in tests of a gRPC Python-using system.</p>
  762. <dl class="field-list simple">
  763. <dt class="field-odd">Parameters</dt>
  764. <dd class="field-odd"><ul class="simple">
  765. <li><p><strong>descriptors_to_servicers</strong> – A dictionary from descriptor.ServiceDescriptors
  766. defining RPC services to servicer objects (usually instances of classes
  767. that implement “Servicer” interfaces defined in generated “_pb2_grpc”
  768. modules) implementing those services.</p></li>
  769. <li><p><strong>time</strong> – A Time to be used for tests.</p></li>
  770. </ul>
  771. </dd>
  772. <dt class="field-even">Returns</dt>
  773. <dd class="field-even"><p>A Server for use in tests.</p>
  774. </dd>
  775. </dl>
  776. </dd></dl>
  777. <dl class="py function">
  778. <dt id="grpc_testing.strict_fake_time">
  779. <code class="sig-prename descclassname"><span class="pre">grpc_testing.</span></code><code class="sig-name descname"><span class="pre">strict_fake_time</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">now</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#strict_fake_time"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.strict_fake_time" title="Permalink to this definition">¶</a></dt>
  780. <dd><p>Creates a Time that can be manipulated by test code.</p>
  781. <p>The returned instance maintains an internal representation of time
  782. independent of real time. This internal representation only advances
  783. when user code calls the instance’s sleep_for and sleep_until methods.</p>
  784. <p>The returned instance will be “strict” with respect to callbacks
  785. submitted to it: it will ensure that all callbacks registered to
  786. be called at time t have been called before it describes the time
  787. as having advanced beyond t.</p>
  788. <dl class="field-list simple">
  789. <dt class="field-odd">Returns</dt>
  790. <dd class="field-odd"><p>A Time that simulates the passage of time.</p>
  791. </dd>
  792. </dl>
  793. </dd></dl>
  794. <dl class="py function">
  795. <dt id="grpc_testing.strict_real_time">
  796. <code class="sig-prename descclassname"><span class="pre">grpc_testing.</span></code><code class="sig-name descname"><span class="pre">strict_real_time</span></code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc_testing.html#strict_real_time"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#grpc_testing.strict_real_time" title="Permalink to this definition">¶</a></dt>
  797. <dd><p>Creates a Time backed by the Python interpreter’s time.</p>
  798. <p>The returned instance will be “strict” with respect to callbacks
  799. submitted to it: it will ensure that all callbacks registered to
  800. be called at time t have been called before it describes the time
  801. as having advanced beyond t.</p>
  802. <dl class="field-list simple">
  803. <dt class="field-odd">Returns</dt>
  804. <dd class="field-odd"><p>A Time backed by the “system” (Python interpreter’s) time.</p>
  805. </dd>
  806. </dl>
  807. </dd></dl>
  808. </div>
  809. </div>
  810. </div>
  811. </div>
  812. </div>
  813. <div class="clearer"></div>
  814. </div>
  815. <div class="footer">
  816. &copy;2020, The gRPC Authors.
  817. |
  818. <a href="_sources/grpc_testing.rst.txt"
  819. rel="nofollow">Page source</a>
  820. </div>
  821. <script type="text/javascript">
  822. var _gaq = _gaq || [];
  823. _gaq.push(['_setAccount', 'UA-60127042-1']);
  824. _gaq.push(['_setDomainName', 'none']);
  825. _gaq.push(['_setAllowLinker', true]);
  826. _gaq.push(['_trackPageview']);
  827. (function() {
  828. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  829. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  830. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  831. })();
  832. </script>
  833. </body>
  834. </html>