grpc.framework.face.testing.html 175 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875
  1. <!DOCTYPE html>
  2. <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
  3. <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>grpc.framework.face.testing package &mdash; grpcio 0.10.0a0 documentation</title>
  8. <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  9. <link rel="top" title="grpcio 0.10.0a0 documentation" href="index.html"/>
  10. <link rel="up" title="grpc.framework.face package" href="grpc.framework.face.html"/>
  11. <link rel="next" title="grpc.framework.foundation package" href="grpc.framework.foundation.html"/>
  12. <link rel="prev" title="grpc.framework.face package" href="grpc.framework.face.html"/>
  13. <script src="_static/js/modernizr.min.js"></script>
  14. </head>
  15. <body class="wy-body-for-nav" role="document">
  16. <div class="wy-grid-for-nav">
  17. <nav data-toggle="wy-nav-shift" class="wy-nav-side">
  18. <div class="wy-side-nav-search">
  19. <a href="index.html" class="icon icon-home"> grpcio
  20. </a>
  21. <div role="search">
  22. <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
  23. <input type="text" name="q" placeholder="Search docs" />
  24. <input type="hidden" name="check_keywords" value="yes" />
  25. <input type="hidden" name="area" value="default" />
  26. </form>
  27. </div>
  28. </div>
  29. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  30. <ul class="current">
  31. <li class="toctree-l1 current"><a class="reference internal" href="grpc.html">grpc package</a><ul class="current">
  32. <li class="toctree-l2 current"><a class="reference internal" href="grpc.html#subpackages">Subpackages</a><ul class="current">
  33. <li class="toctree-l3"><a class="reference internal" href="grpc.early_adopter.html">grpc.early_adopter package</a><ul>
  34. <li class="toctree-l4"><a class="reference internal" href="grpc.early_adopter.html#submodules">Submodules</a></li>
  35. <li class="toctree-l4"><a class="reference internal" href="grpc.early_adopter.html#module-grpc.early_adopter.implementations">grpc.early_adopter.implementations module</a></li>
  36. <li class="toctree-l4"><a class="reference internal" href="grpc.early_adopter.html#module-grpc.early_adopter.implementations_test">grpc.early_adopter.implementations_test module</a></li>
  37. <li class="toctree-l4"><a class="reference internal" href="grpc.early_adopter.html#module-grpc.early_adopter">Module contents</a></li>
  38. </ul>
  39. </li>
  40. <li class="toctree-l3 current"><a class="reference internal" href="grpc.framework.html">grpc.framework package</a><ul class="current">
  41. <li class="toctree-l4 current"><a class="reference internal" href="grpc.framework.html#subpackages">Subpackages</a></li>
  42. <li class="toctree-l4"><a class="reference internal" href="grpc.framework.html#module-grpc.framework">Module contents</a></li>
  43. </ul>
  44. </li>
  45. </ul>
  46. </li>
  47. <li class="toctree-l2"><a class="reference internal" href="grpc.html#module-grpc">Module contents</a></li>
  48. </ul>
  49. </li>
  50. </ul>
  51. </div>
  52. &nbsp;
  53. </nav>
  54. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  55. <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
  56. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  57. <a href="index.html">grpcio</a>
  58. </nav>
  59. <div class="wy-nav-content">
  60. <div class="rst-content">
  61. <div role="navigation" aria-label="breadcrumbs navigation">
  62. <ul class="wy-breadcrumbs">
  63. <li><a href="index.html">Docs</a> &raquo;</li>
  64. <li><a href="grpc.html">grpc package</a> &raquo;</li>
  65. <li><a href="grpc.framework.html">grpc.framework package</a> &raquo;</li>
  66. <li><a href="grpc.framework.face.html">grpc.framework.face package</a> &raquo;</li>
  67. <li>grpc.framework.face.testing package</li>
  68. <li class="wy-breadcrumbs-aside">
  69. <a href="_sources/grpc.framework.face.testing.txt" rel="nofollow"> View page source</a>
  70. </li>
  71. </ul>
  72. <hr/>
  73. </div>
  74. <div role="main" class="document">
  75. <div class="section" id="grpc-framework-face-testing-package">
  76. <h1>grpc.framework.face.testing package<a class="headerlink" href="#grpc-framework-face-testing-package" title="Permalink to this headline">¶</a></h1>
  77. <div class="section" id="submodules">
  78. <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2>
  79. </div>
  80. <div class="section" id="module-grpc.framework.face.testing.base_util">
  81. <span id="grpc-framework-face-testing-base-util-module"></span><h2>grpc.framework.face.testing.base_util module<a class="headerlink" href="#module-grpc.framework.face.testing.base_util" title="Permalink to this headline">¶</a></h2>
  82. <p>Utilities for creating Base-layer objects for use in Face-layer tests.</p>
  83. <dl class="class">
  84. <dt id="grpc.framework.face.testing.base_util.LinkedPair">
  85. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.base_util.</code><code class="descname">LinkedPair</code><a class="reference internal" href="_modules/grpc/framework/face/testing/base_util.html#LinkedPair"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.base_util.LinkedPair" title="Permalink to this definition">¶</a></dt>
  86. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  87. <p>A Front and Back that are linked to one another.</p>
  88. <dl class="attribute">
  89. <dt id="grpc.framework.face.testing.base_util.LinkedPair.front">
  90. <code class="descname">front</code><a class="headerlink" href="#grpc.framework.face.testing.base_util.LinkedPair.front" title="Permalink to this definition">¶</a></dt>
  91. <dd><p>An interfaces.Front.</p>
  92. </dd></dl>
  93. <dl class="attribute">
  94. <dt id="grpc.framework.face.testing.base_util.LinkedPair.back">
  95. <code class="descname">back</code><a class="headerlink" href="#grpc.framework.face.testing.base_util.LinkedPair.back" title="Permalink to this definition">¶</a></dt>
  96. <dd><p>An interfaces.Back.</p>
  97. </dd></dl>
  98. <dl class="method">
  99. <dt id="grpc.framework.face.testing.base_util.LinkedPair.shut_down">
  100. <code class="descname">shut_down</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/base_util.html#LinkedPair.shut_down"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.base_util.LinkedPair.shut_down" title="Permalink to this definition">¶</a></dt>
  101. <dd><p>Shuts down this object and releases its resources.</p>
  102. </dd></dl>
  103. </dd></dl>
  104. <dl class="function">
  105. <dt id="grpc.framework.face.testing.base_util.linked_pair">
  106. <code class="descclassname">grpc.framework.face.testing.base_util.</code><code class="descname">linked_pair</code><span class="sig-paren">(</span><em>servicer</em>, <em>default_timeout</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/base_util.html#linked_pair"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.base_util.linked_pair" title="Permalink to this definition">¶</a></dt>
  107. <dd><p>Creates a Server and Stub linked together for use.</p>
  108. </dd></dl>
  109. </div>
  110. <div class="section" id="module-grpc.framework.face.testing.blocking_invocation_inline_service_test_case">
  111. <span id="grpc-framework-face-testing-blocking-invocation-inline-service-test-case-module"></span><h2>grpc.framework.face.testing.blocking_invocation_inline_service_test_case module<a class="headerlink" href="#module-grpc.framework.face.testing.blocking_invocation_inline_service_test_case" title="Permalink to this headline">¶</a></h2>
  112. <p>A test to verify an implementation of the Face layer of RPC Framework.</p>
  113. <dl class="class">
  114. <dt id="grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase">
  115. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.blocking_invocation_inline_service_test_case.</code><code class="descname">BlockingInvocationInlineServiceTestCase</code><a class="reference internal" href="_modules/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.html#BlockingInvocationInlineServiceTestCase"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase" title="Permalink to this definition">¶</a></dt>
  116. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.test_case.FaceTestCase" title="grpc.framework.face.testing.test_case.FaceTestCase"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.test_case.FaceTestCase</span></code></a>, <a class="reference internal" href="#grpc.framework.face.testing.coverage.BlockingCoverage" title="grpc.framework.face.testing.coverage.BlockingCoverage"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.coverage.BlockingCoverage</span></code></a></p>
  117. <p>A test of the Face layer of RPC Framework.</p>
  118. <p>Concrete subclasses must also extend unittest.TestCase.</p>
  119. <dl class="method">
  120. <dt id="grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.setUp">
  121. <code class="descname">setUp</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.html#BlockingInvocationInlineServiceTestCase.setUp"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.setUp" title="Permalink to this definition">¶</a></dt>
  122. <dd><p>See unittest.TestCase.setUp for full specification.</p>
  123. <p>Overriding implementations must call this implementation.</p>
  124. </dd></dl>
  125. <dl class="method">
  126. <dt id="grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.tearDown">
  127. <code class="descname">tearDown</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.html#BlockingInvocationInlineServiceTestCase.tearDown"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.tearDown" title="Permalink to this definition">¶</a></dt>
  128. <dd><p>See unittest.TestCase.tearDown for full specification.</p>
  129. <p>Overriding implementations must call this implementation.</p>
  130. </dd></dl>
  131. <dl class="method">
  132. <dt id="grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testExpiredStreamRequestStreamResponse">
  133. <code class="descname">testExpiredStreamRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.html#BlockingInvocationInlineServiceTestCase.testExpiredStreamRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testExpiredStreamRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  134. <dd></dd></dl>
  135. <dl class="method">
  136. <dt id="grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testExpiredStreamRequestUnaryResponse">
  137. <code class="descname">testExpiredStreamRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.html#BlockingInvocationInlineServiceTestCase.testExpiredStreamRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testExpiredStreamRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  138. <dd></dd></dl>
  139. <dl class="method">
  140. <dt id="grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testExpiredUnaryRequestStreamResponse">
  141. <code class="descname">testExpiredUnaryRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.html#BlockingInvocationInlineServiceTestCase.testExpiredUnaryRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testExpiredUnaryRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  142. <dd></dd></dl>
  143. <dl class="method">
  144. <dt id="grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testExpiredUnaryRequestUnaryResponse">
  145. <code class="descname">testExpiredUnaryRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.html#BlockingInvocationInlineServiceTestCase.testExpiredUnaryRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testExpiredUnaryRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  146. <dd></dd></dl>
  147. <dl class="method">
  148. <dt id="grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testFailedStreamRequestStreamResponse">
  149. <code class="descname">testFailedStreamRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.html#BlockingInvocationInlineServiceTestCase.testFailedStreamRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testFailedStreamRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  150. <dd></dd></dl>
  151. <dl class="method">
  152. <dt id="grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testFailedStreamRequestUnaryResponse">
  153. <code class="descname">testFailedStreamRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.html#BlockingInvocationInlineServiceTestCase.testFailedStreamRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testFailedStreamRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  154. <dd></dd></dl>
  155. <dl class="method">
  156. <dt id="grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testFailedUnaryRequestStreamResponse">
  157. <code class="descname">testFailedUnaryRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.html#BlockingInvocationInlineServiceTestCase.testFailedUnaryRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testFailedUnaryRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  158. <dd></dd></dl>
  159. <dl class="method">
  160. <dt id="grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testFailedUnaryRequestUnaryResponse">
  161. <code class="descname">testFailedUnaryRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.html#BlockingInvocationInlineServiceTestCase.testFailedUnaryRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testFailedUnaryRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  162. <dd></dd></dl>
  163. <dl class="method">
  164. <dt id="grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testSequentialInvocations">
  165. <code class="descname">testSequentialInvocations</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.html#BlockingInvocationInlineServiceTestCase.testSequentialInvocations"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testSequentialInvocations" title="Permalink to this definition">¶</a></dt>
  166. <dd></dd></dl>
  167. <dl class="method">
  168. <dt id="grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testSuccessfulStreamRequestStreamResponse">
  169. <code class="descname">testSuccessfulStreamRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.html#BlockingInvocationInlineServiceTestCase.testSuccessfulStreamRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testSuccessfulStreamRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  170. <dd></dd></dl>
  171. <dl class="method">
  172. <dt id="grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testSuccessfulStreamRequestUnaryResponse">
  173. <code class="descname">testSuccessfulStreamRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.html#BlockingInvocationInlineServiceTestCase.testSuccessfulStreamRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testSuccessfulStreamRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  174. <dd></dd></dl>
  175. <dl class="method">
  176. <dt id="grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testSuccessfulUnaryRequestStreamResponse">
  177. <code class="descname">testSuccessfulUnaryRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.html#BlockingInvocationInlineServiceTestCase.testSuccessfulUnaryRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testSuccessfulUnaryRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  178. <dd></dd></dl>
  179. <dl class="method">
  180. <dt id="grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testSuccessfulUnaryRequestUnaryResponse">
  181. <code class="descname">testSuccessfulUnaryRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.html#BlockingInvocationInlineServiceTestCase.testSuccessfulUnaryRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.blocking_invocation_inline_service_test_case.BlockingInvocationInlineServiceTestCase.testSuccessfulUnaryRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  182. <dd></dd></dl>
  183. </dd></dl>
  184. </div>
  185. <div class="section" id="module-grpc.framework.face.testing.callback">
  186. <span id="grpc-framework-face-testing-callback-module"></span><h2>grpc.framework.face.testing.callback module<a class="headerlink" href="#module-grpc.framework.face.testing.callback" title="Permalink to this headline">¶</a></h2>
  187. <p>A utility useful in tests of asynchronous, event-driven interfaces.</p>
  188. <dl class="class">
  189. <dt id="grpc.framework.face.testing.callback.Callback">
  190. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.callback.</code><code class="descname">Callback</code><a class="reference internal" href="_modules/grpc/framework/face/testing/callback.html#Callback"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.callback.Callback" title="Permalink to this definition">¶</a></dt>
  191. <dd><p>Bases: <a class="reference internal" href="grpc.framework.foundation.html#grpc.framework.foundation.stream.Consumer" title="grpc.framework.foundation.stream.Consumer"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.foundation.stream.Consumer</span></code></a></p>
  192. <p>A utility object useful in tests of asynchronous code.</p>
  193. <dl class="method">
  194. <dt id="grpc.framework.face.testing.callback.Callback.abort">
  195. <code class="descname">abort</code><span class="sig-paren">(</span><em>abortion</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/callback.html#Callback.abort"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.callback.Callback.abort" title="Permalink to this definition">¶</a></dt>
  196. <dd></dd></dl>
  197. <dl class="method">
  198. <dt id="grpc.framework.face.testing.callback.Callback.abortion">
  199. <code class="descname">abortion</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/callback.html#Callback.abortion"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.callback.Callback.abortion" title="Permalink to this definition">¶</a></dt>
  200. <dd></dd></dl>
  201. <dl class="method">
  202. <dt id="grpc.framework.face.testing.callback.Callback.block_until_terminated">
  203. <code class="descname">block_until_terminated</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/callback.html#Callback.block_until_terminated"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.callback.Callback.block_until_terminated" title="Permalink to this definition">¶</a></dt>
  204. <dd></dd></dl>
  205. <dl class="method">
  206. <dt id="grpc.framework.face.testing.callback.Callback.complete">
  207. <code class="descname">complete</code><span class="sig-paren">(</span><em>unary_response</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/callback.html#Callback.complete"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.callback.Callback.complete" title="Permalink to this definition">¶</a></dt>
  208. <dd></dd></dl>
  209. <dl class="method">
  210. <dt id="grpc.framework.face.testing.callback.Callback.consume">
  211. <code class="descname">consume</code><span class="sig-paren">(</span><em>streamed_response</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/callback.html#Callback.consume"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.callback.Callback.consume" title="Permalink to this definition">¶</a></dt>
  212. <dd></dd></dl>
  213. <dl class="method">
  214. <dt id="grpc.framework.face.testing.callback.Callback.consume_and_terminate">
  215. <code class="descname">consume_and_terminate</code><span class="sig-paren">(</span><em>streamed_response</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/callback.html#Callback.consume_and_terminate"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.callback.Callback.consume_and_terminate" title="Permalink to this definition">¶</a></dt>
  216. <dd></dd></dl>
  217. <dl class="method">
  218. <dt id="grpc.framework.face.testing.callback.Callback.response">
  219. <code class="descname">response</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/callback.html#Callback.response"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.callback.Callback.response" title="Permalink to this definition">¶</a></dt>
  220. <dd></dd></dl>
  221. <dl class="method">
  222. <dt id="grpc.framework.face.testing.callback.Callback.responses">
  223. <code class="descname">responses</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/callback.html#Callback.responses"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.callback.Callback.responses" title="Permalink to this definition">¶</a></dt>
  224. <dd></dd></dl>
  225. <dl class="method">
  226. <dt id="grpc.framework.face.testing.callback.Callback.terminate">
  227. <code class="descname">terminate</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/callback.html#Callback.terminate"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.callback.Callback.terminate" title="Permalink to this definition">¶</a></dt>
  228. <dd></dd></dl>
  229. </dd></dl>
  230. </div>
  231. <div class="section" id="module-grpc.framework.face.testing.control">
  232. <span id="grpc-framework-face-testing-control-module"></span><h2>grpc.framework.face.testing.control module<a class="headerlink" href="#module-grpc.framework.face.testing.control" title="Permalink to this headline">¶</a></h2>
  233. <p>Code for instructing systems under test to block or fail.</p>
  234. <dl class="class">
  235. <dt id="grpc.framework.face.testing.control.Control">
  236. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.control.</code><code class="descname">Control</code><a class="reference internal" href="_modules/grpc/framework/face/testing/control.html#Control"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.control.Control" title="Permalink to this definition">¶</a></dt>
  237. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  238. <p>An object that accepts program control from a system under test.</p>
  239. <p>Systems under test passed a Control should call its control() method
  240. frequently during execution. The control() method may block, raise an
  241. exception, or do nothing, all according to the enclosing test&#8217;s desire for
  242. the system under test to simulate hanging, failing, or functioning.</p>
  243. <dl class="method">
  244. <dt id="grpc.framework.face.testing.control.Control.control">
  245. <code class="descname">control</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/control.html#Control.control"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.control.Control.control" title="Permalink to this definition">¶</a></dt>
  246. <dd><p>Potentially does anything.</p>
  247. </dd></dl>
  248. </dd></dl>
  249. <dl class="class">
  250. <dt id="grpc.framework.face.testing.control.PauseFailControl">
  251. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.control.</code><code class="descname">PauseFailControl</code><a class="reference internal" href="_modules/grpc/framework/face/testing/control.html#PauseFailControl"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.control.PauseFailControl" title="Permalink to this definition">¶</a></dt>
  252. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.control.Control" title="grpc.framework.face.testing.control.Control"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.control.Control</span></code></a></p>
  253. <p>A Control that can be used to pause or fail code under control.</p>
  254. <dl class="method">
  255. <dt id="grpc.framework.face.testing.control.PauseFailControl.control">
  256. <code class="descname">control</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/control.html#PauseFailControl.control"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.control.PauseFailControl.control" title="Permalink to this definition">¶</a></dt>
  257. <dd></dd></dl>
  258. <dl class="method">
  259. <dt id="grpc.framework.face.testing.control.PauseFailControl.fail">
  260. <code class="descname">fail</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwds</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/control.html#PauseFailControl.fail"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.control.PauseFailControl.fail" title="Permalink to this definition">¶</a></dt>
  261. <dd><p>Fails code under control while controlling code is in context.</p>
  262. </dd></dl>
  263. <dl class="method">
  264. <dt id="grpc.framework.face.testing.control.PauseFailControl.pause">
  265. <code class="descname">pause</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwds</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/control.html#PauseFailControl.pause"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.control.PauseFailControl.pause" title="Permalink to this definition">¶</a></dt>
  266. <dd><p>Pauses code under control while controlling code is in context.</p>
  267. </dd></dl>
  268. </dd></dl>
  269. </div>
  270. <div class="section" id="module-grpc.framework.face.testing.coverage">
  271. <span id="grpc-framework-face-testing-coverage-module"></span><h2>grpc.framework.face.testing.coverage module<a class="headerlink" href="#module-grpc.framework.face.testing.coverage" title="Permalink to this headline">¶</a></h2>
  272. <p>Governs coverage for the tests of the Face layer of RPC Framework.</p>
  273. <dl class="class">
  274. <dt id="grpc.framework.face.testing.coverage.BlockingCoverage">
  275. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.coverage.</code><code class="descname">BlockingCoverage</code><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#BlockingCoverage"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.BlockingCoverage" title="Permalink to this definition">¶</a></dt>
  276. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  277. <p>Specification of test coverage for blocking behaviors.</p>
  278. <dl class="method">
  279. <dt id="grpc.framework.face.testing.coverage.BlockingCoverage.testExpiredStreamRequestStreamResponse">
  280. <code class="descname">testExpiredStreamRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#BlockingCoverage.testExpiredStreamRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.BlockingCoverage.testExpiredStreamRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  281. <dd></dd></dl>
  282. <dl class="method">
  283. <dt id="grpc.framework.face.testing.coverage.BlockingCoverage.testExpiredStreamRequestUnaryResponse">
  284. <code class="descname">testExpiredStreamRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#BlockingCoverage.testExpiredStreamRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.BlockingCoverage.testExpiredStreamRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  285. <dd></dd></dl>
  286. <dl class="method">
  287. <dt id="grpc.framework.face.testing.coverage.BlockingCoverage.testExpiredUnaryRequestStreamResponse">
  288. <code class="descname">testExpiredUnaryRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#BlockingCoverage.testExpiredUnaryRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.BlockingCoverage.testExpiredUnaryRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  289. <dd></dd></dl>
  290. <dl class="method">
  291. <dt id="grpc.framework.face.testing.coverage.BlockingCoverage.testExpiredUnaryRequestUnaryResponse">
  292. <code class="descname">testExpiredUnaryRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#BlockingCoverage.testExpiredUnaryRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.BlockingCoverage.testExpiredUnaryRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  293. <dd></dd></dl>
  294. <dl class="method">
  295. <dt id="grpc.framework.face.testing.coverage.BlockingCoverage.testFailedStreamRequestStreamResponse">
  296. <code class="descname">testFailedStreamRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#BlockingCoverage.testFailedStreamRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.BlockingCoverage.testFailedStreamRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  297. <dd></dd></dl>
  298. <dl class="method">
  299. <dt id="grpc.framework.face.testing.coverage.BlockingCoverage.testFailedStreamRequestUnaryResponse">
  300. <code class="descname">testFailedStreamRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#BlockingCoverage.testFailedStreamRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.BlockingCoverage.testFailedStreamRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  301. <dd></dd></dl>
  302. <dl class="method">
  303. <dt id="grpc.framework.face.testing.coverage.BlockingCoverage.testFailedUnaryRequestStreamResponse">
  304. <code class="descname">testFailedUnaryRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#BlockingCoverage.testFailedUnaryRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.BlockingCoverage.testFailedUnaryRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  305. <dd></dd></dl>
  306. <dl class="method">
  307. <dt id="grpc.framework.face.testing.coverage.BlockingCoverage.testFailedUnaryRequestUnaryResponse">
  308. <code class="descname">testFailedUnaryRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#BlockingCoverage.testFailedUnaryRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.BlockingCoverage.testFailedUnaryRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  309. <dd></dd></dl>
  310. <dl class="method">
  311. <dt id="grpc.framework.face.testing.coverage.BlockingCoverage.testSequentialInvocations">
  312. <code class="descname">testSequentialInvocations</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#BlockingCoverage.testSequentialInvocations"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.BlockingCoverage.testSequentialInvocations" title="Permalink to this definition">¶</a></dt>
  313. <dd></dd></dl>
  314. <dl class="method">
  315. <dt id="grpc.framework.face.testing.coverage.BlockingCoverage.testSuccessfulStreamRequestStreamResponse">
  316. <code class="descname">testSuccessfulStreamRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#BlockingCoverage.testSuccessfulStreamRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.BlockingCoverage.testSuccessfulStreamRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  317. <dd></dd></dl>
  318. <dl class="method">
  319. <dt id="grpc.framework.face.testing.coverage.BlockingCoverage.testSuccessfulStreamRequestUnaryResponse">
  320. <code class="descname">testSuccessfulStreamRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#BlockingCoverage.testSuccessfulStreamRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.BlockingCoverage.testSuccessfulStreamRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  321. <dd></dd></dl>
  322. <dl class="method">
  323. <dt id="grpc.framework.face.testing.coverage.BlockingCoverage.testSuccessfulUnaryRequestStreamResponse">
  324. <code class="descname">testSuccessfulUnaryRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#BlockingCoverage.testSuccessfulUnaryRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.BlockingCoverage.testSuccessfulUnaryRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  325. <dd></dd></dl>
  326. <dl class="method">
  327. <dt id="grpc.framework.face.testing.coverage.BlockingCoverage.testSuccessfulUnaryRequestUnaryResponse">
  328. <code class="descname">testSuccessfulUnaryRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#BlockingCoverage.testSuccessfulUnaryRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.BlockingCoverage.testSuccessfulUnaryRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  329. <dd></dd></dl>
  330. </dd></dl>
  331. <dl class="class">
  332. <dt id="grpc.framework.face.testing.coverage.FullCoverage">
  333. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.coverage.</code><code class="descname">FullCoverage</code><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#FullCoverage"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.FullCoverage" title="Permalink to this definition">¶</a></dt>
  334. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.coverage.BlockingCoverage" title="grpc.framework.face.testing.coverage.BlockingCoverage"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.coverage.BlockingCoverage</span></code></a></p>
  335. <p>Specification of test coverage for non-blocking behaviors.</p>
  336. <dl class="method">
  337. <dt id="grpc.framework.face.testing.coverage.FullCoverage.testCancelledStreamRequestStreamResponse">
  338. <code class="descname">testCancelledStreamRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#FullCoverage.testCancelledStreamRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.FullCoverage.testCancelledStreamRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  339. <dd></dd></dl>
  340. <dl class="method">
  341. <dt id="grpc.framework.face.testing.coverage.FullCoverage.testCancelledStreamRequestUnaryResponse">
  342. <code class="descname">testCancelledStreamRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#FullCoverage.testCancelledStreamRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.FullCoverage.testCancelledStreamRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  343. <dd></dd></dl>
  344. <dl class="method">
  345. <dt id="grpc.framework.face.testing.coverage.FullCoverage.testCancelledUnaryRequestStreamResponse">
  346. <code class="descname">testCancelledUnaryRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#FullCoverage.testCancelledUnaryRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.FullCoverage.testCancelledUnaryRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  347. <dd></dd></dl>
  348. <dl class="method">
  349. <dt id="grpc.framework.face.testing.coverage.FullCoverage.testCancelledUnaryRequestUnaryResponse">
  350. <code class="descname">testCancelledUnaryRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#FullCoverage.testCancelledUnaryRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.FullCoverage.testCancelledUnaryRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  351. <dd></dd></dl>
  352. <dl class="method">
  353. <dt id="grpc.framework.face.testing.coverage.FullCoverage.testParallelInvocations">
  354. <code class="descname">testParallelInvocations</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#FullCoverage.testParallelInvocations"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.FullCoverage.testParallelInvocations" title="Permalink to this definition">¶</a></dt>
  355. <dd></dd></dl>
  356. <dl class="method">
  357. <dt id="grpc.framework.face.testing.coverage.FullCoverage.testWaitingForSomeButNotAllParallelInvocations">
  358. <code class="descname">testWaitingForSomeButNotAllParallelInvocations</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/coverage.html#FullCoverage.testWaitingForSomeButNotAllParallelInvocations"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.coverage.FullCoverage.testWaitingForSomeButNotAllParallelInvocations" title="Permalink to this definition">¶</a></dt>
  359. <dd></dd></dl>
  360. </dd></dl>
  361. </div>
  362. <div class="section" id="module-grpc.framework.face.testing.digest">
  363. <span id="grpc-framework-face-testing-digest-module"></span><h2>grpc.framework.face.testing.digest module<a class="headerlink" href="#module-grpc.framework.face.testing.digest" title="Permalink to this headline">¶</a></h2>
  364. <p>Code for making a service.TestService more amenable to use in tests.</p>
  365. <dl class="class">
  366. <dt id="grpc.framework.face.testing.digest.TestServiceDigest">
  367. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.digest.</code><code class="descname">TestServiceDigest</code><a class="reference internal" href="_modules/grpc/framework/face/testing/digest.html#TestServiceDigest"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.digest.TestServiceDigest" title="Permalink to this definition">¶</a></dt>
  368. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.digest.TestServiceDigest" title="grpc.framework.face.testing.digest.TestServiceDigest"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.digest.TestServiceDigest</span></code></a></p>
  369. <p>A transformation of a service.TestService.</p>
  370. <dl class="attribute">
  371. <dt id="grpc.framework.face.testing.digest.TestServiceDigest.name">
  372. <code class="descname">name</code><a class="headerlink" href="#grpc.framework.face.testing.digest.TestServiceDigest.name" title="Permalink to this definition">¶</a></dt>
  373. <dd><p>The RPC service name to be used in the test.</p>
  374. </dd></dl>
  375. <dl class="attribute">
  376. <dt id="grpc.framework.face.testing.digest.TestServiceDigest.methods">
  377. <code class="descname">methods</code><a class="headerlink" href="#grpc.framework.face.testing.digest.TestServiceDigest.methods" title="Permalink to this definition">¶</a></dt>
  378. <dd><p>A sequence of interfaces.Method objects describing the RPC
  379. methods that will be called during the test.</p>
  380. </dd></dl>
  381. <dl class="attribute">
  382. <dt id="grpc.framework.face.testing.digest.TestServiceDigest.inline_method_implementations">
  383. <code class="descname">inline_method_implementations</code><a class="headerlink" href="#grpc.framework.face.testing.digest.TestServiceDigest.inline_method_implementations" title="Permalink to this definition">¶</a></dt>
  384. <dd><p>A dict from RPC method name to
  385. face_interfaces.MethodImplementation object to be used in tests of
  386. in-line calls to behaviors under test.</p>
  387. </dd></dl>
  388. <dl class="attribute">
  389. <dt id="grpc.framework.face.testing.digest.TestServiceDigest.event_method_implementations">
  390. <code class="descname">event_method_implementations</code><a class="headerlink" href="#grpc.framework.face.testing.digest.TestServiceDigest.event_method_implementations" title="Permalink to this definition">¶</a></dt>
  391. <dd><p>A dict from RPC method name to
  392. face_interfaces.MethodImplementation object to be used in tests of
  393. event-driven calls to behaviors under test.</p>
  394. </dd></dl>
  395. <dl class="attribute">
  396. <dt id="grpc.framework.face.testing.digest.TestServiceDigest.multi_method_implementation">
  397. <code class="descname">multi_method_implementation</code><a class="headerlink" href="#grpc.framework.face.testing.digest.TestServiceDigest.multi_method_implementation" title="Permalink to this definition">¶</a></dt>
  398. <dd><p>A face_interfaces.MultiMethodImplementation to
  399. be used in tests of generic calls to behaviors under test.</p>
  400. </dd></dl>
  401. <dl class="attribute">
  402. <dt id="grpc.framework.face.testing.digest.TestServiceDigest.unary_unary_messages_sequences">
  403. <code class="descname">unary_unary_messages_sequences</code><a class="headerlink" href="#grpc.framework.face.testing.digest.TestServiceDigest.unary_unary_messages_sequences" title="Permalink to this definition">¶</a></dt>
  404. <dd><p>A dict from method name to sequence of
  405. service.UnaryUnaryTestMessages objects to be used to test the method
  406. with the given name.</p>
  407. </dd></dl>
  408. <dl class="attribute">
  409. <dt id="grpc.framework.face.testing.digest.TestServiceDigest.unary_stream_messages_sequences">
  410. <code class="descname">unary_stream_messages_sequences</code><a class="headerlink" href="#grpc.framework.face.testing.digest.TestServiceDigest.unary_stream_messages_sequences" title="Permalink to this definition">¶</a></dt>
  411. <dd><p>A dict from method name to sequence of
  412. service.UnaryStreamTestMessages objects to be used to test the method
  413. with the given name.</p>
  414. </dd></dl>
  415. <dl class="attribute">
  416. <dt id="grpc.framework.face.testing.digest.TestServiceDigest.stream_unary_messages_sequences">
  417. <code class="descname">stream_unary_messages_sequences</code><a class="headerlink" href="#grpc.framework.face.testing.digest.TestServiceDigest.stream_unary_messages_sequences" title="Permalink to this definition">¶</a></dt>
  418. <dd><p>A dict from method name to sequence of
  419. service.StreamUnaryTestMessages objects to be used to test the method
  420. with the given name.</p>
  421. </dd></dl>
  422. <dl class="attribute">
  423. <dt id="grpc.framework.face.testing.digest.TestServiceDigest.stream_stream_messages_sequences">
  424. <code class="descname">stream_stream_messages_sequences</code><a class="headerlink" href="#grpc.framework.face.testing.digest.TestServiceDigest.stream_stream_messages_sequences" title="Permalink to this definition">¶</a></dt>
  425. <dd><p>A dict from method name to sequence of
  426. service.StreamStreamTestMessages objects to be used to test the
  427. method with the given name.</p>
  428. </dd></dl>
  429. <dl class="attribute">
  430. <dt id="grpc.framework.face.testing.digest.TestServiceDigest.serialization">
  431. <code class="descname">serialization</code><a class="headerlink" href="#grpc.framework.face.testing.digest.TestServiceDigest.serialization" title="Permalink to this definition">¶</a></dt>
  432. <dd><p>A serial.Serialization object describing serialization
  433. behaviors for all the RPC methods.</p>
  434. </dd></dl>
  435. </dd></dl>
  436. <dl class="function">
  437. <dt id="grpc.framework.face.testing.digest.digest">
  438. <code class="descclassname">grpc.framework.face.testing.digest.</code><code class="descname">digest</code><span class="sig-paren">(</span><em>service</em>, <em>control</em>, <em>pool</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/digest.html#digest"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.digest.digest" title="Permalink to this definition">¶</a></dt>
  439. <dd><p>Creates a TestServiceDigest from a TestService.</p>
  440. <table class="docutils field-list" frame="void" rules="none">
  441. <col class="field-name" />
  442. <col class="field-body" />
  443. <tbody valign="top">
  444. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  445. <li><strong>service</strong> &#8211; A testing_service.TestService.</li>
  446. <li><strong>control</strong> &#8211; A testing_control.Control.</li>
  447. <li><strong>pool</strong> &#8211; If RPC methods should be serviced in a separate thread, a thread pool.
  448. None if RPC methods should be serviced in the thread belonging to the
  449. run-time that calls for their service.</li>
  450. </ul>
  451. </td>
  452. </tr>
  453. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A TestServiceDigest synthesized from the given service.TestService.</p>
  454. </td>
  455. </tr>
  456. </tbody>
  457. </table>
  458. </dd></dl>
  459. </div>
  460. <div class="section" id="module-grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case">
  461. <span id="grpc-framework-face-testing-event-invocation-synchronous-event-service-test-case-module"></span><h2>grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case module<a class="headerlink" href="#module-grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case" title="Permalink to this headline">¶</a></h2>
  462. <p>A test to verify an implementation of the Face layer of RPC Framework.</p>
  463. <dl class="class">
  464. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase">
  465. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.</code><code class="descname">EventInvocationSynchronousEventServiceTestCase</code><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase" title="Permalink to this definition">¶</a></dt>
  466. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.test_case.FaceTestCase" title="grpc.framework.face.testing.test_case.FaceTestCase"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.test_case.FaceTestCase</span></code></a>, <a class="reference internal" href="#grpc.framework.face.testing.coverage.FullCoverage" title="grpc.framework.face.testing.coverage.FullCoverage"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.coverage.FullCoverage</span></code></a></p>
  467. <p>A test of the Face layer of RPC Framework.</p>
  468. <p>Concrete subclasses must also extend unittest.TestCase.</p>
  469. <dl class="method">
  470. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.setUp">
  471. <code class="descname">setUp</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.setUp"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.setUp" title="Permalink to this definition">¶</a></dt>
  472. <dd><p>See unittest.TestCase.setUp for full specification.</p>
  473. <p>Overriding implementations must call this implementation.</p>
  474. </dd></dl>
  475. <dl class="method">
  476. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.tearDown">
  477. <code class="descname">tearDown</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.tearDown"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.tearDown" title="Permalink to this definition">¶</a></dt>
  478. <dd><p>See unittest.TestCase.tearDown for full specification.</p>
  479. <p>Overriding implementations must call this implementation.</p>
  480. </dd></dl>
  481. <dl class="method">
  482. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testCancelledStreamRequestStreamResponse">
  483. <code class="descname">testCancelledStreamRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testCancelledStreamRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testCancelledStreamRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  484. <dd></dd></dl>
  485. <dl class="method">
  486. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testCancelledStreamRequestUnaryResponse">
  487. <code class="descname">testCancelledStreamRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testCancelledStreamRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testCancelledStreamRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  488. <dd></dd></dl>
  489. <dl class="method">
  490. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testCancelledUnaryRequestStreamResponse">
  491. <code class="descname">testCancelledUnaryRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testCancelledUnaryRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testCancelledUnaryRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  492. <dd></dd></dl>
  493. <dl class="method">
  494. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testCancelledUnaryRequestUnaryResponse">
  495. <code class="descname">testCancelledUnaryRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testCancelledUnaryRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testCancelledUnaryRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  496. <dd></dd></dl>
  497. <dl class="method">
  498. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testExpiredStreamRequestStreamResponse">
  499. <code class="descname">testExpiredStreamRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testExpiredStreamRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testExpiredStreamRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  500. <dd></dd></dl>
  501. <dl class="method">
  502. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testExpiredStreamRequestUnaryResponse">
  503. <code class="descname">testExpiredStreamRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testExpiredStreamRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testExpiredStreamRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  504. <dd></dd></dl>
  505. <dl class="method">
  506. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testExpiredUnaryRequestStreamResponse">
  507. <code class="descname">testExpiredUnaryRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testExpiredUnaryRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testExpiredUnaryRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  508. <dd></dd></dl>
  509. <dl class="method">
  510. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testExpiredUnaryRequestUnaryResponse">
  511. <code class="descname">testExpiredUnaryRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testExpiredUnaryRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testExpiredUnaryRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  512. <dd></dd></dl>
  513. <dl class="method">
  514. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testFailedStreamRequestStreamResponse">
  515. <code class="descname">testFailedStreamRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testFailedStreamRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testFailedStreamRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  516. <dd></dd></dl>
  517. <dl class="method">
  518. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testFailedStreamRequestUnaryResponse">
  519. <code class="descname">testFailedStreamRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testFailedStreamRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testFailedStreamRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  520. <dd></dd></dl>
  521. <dl class="method">
  522. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testFailedUnaryRequestStreamResponse">
  523. <code class="descname">testFailedUnaryRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testFailedUnaryRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testFailedUnaryRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  524. <dd></dd></dl>
  525. <dl class="method">
  526. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testFailedUnaryRequestUnaryResponse">
  527. <code class="descname">testFailedUnaryRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testFailedUnaryRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testFailedUnaryRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  528. <dd></dd></dl>
  529. <dl class="method">
  530. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testParallelInvocations">
  531. <code class="descname">testParallelInvocations</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testParallelInvocations"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testParallelInvocations" title="Permalink to this definition">¶</a></dt>
  532. <dd></dd></dl>
  533. <dl class="method">
  534. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testSequentialInvocations">
  535. <code class="descname">testSequentialInvocations</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testSequentialInvocations"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testSequentialInvocations" title="Permalink to this definition">¶</a></dt>
  536. <dd></dd></dl>
  537. <dl class="method">
  538. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testSuccessfulStreamRequestStreamResponse">
  539. <code class="descname">testSuccessfulStreamRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testSuccessfulStreamRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testSuccessfulStreamRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  540. <dd></dd></dl>
  541. <dl class="method">
  542. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testSuccessfulStreamRequestUnaryResponse">
  543. <code class="descname">testSuccessfulStreamRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testSuccessfulStreamRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testSuccessfulStreamRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  544. <dd></dd></dl>
  545. <dl class="method">
  546. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testSuccessfulUnaryRequestStreamResponse">
  547. <code class="descname">testSuccessfulUnaryRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testSuccessfulUnaryRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testSuccessfulUnaryRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  548. <dd></dd></dl>
  549. <dl class="method">
  550. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testSuccessfulUnaryRequestUnaryResponse">
  551. <code class="descname">testSuccessfulUnaryRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testSuccessfulUnaryRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testSuccessfulUnaryRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  552. <dd></dd></dl>
  553. <dl class="method">
  554. <dt id="grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testWaitingForSomeButNotAllParallelInvocations">
  555. <code class="descname">testWaitingForSomeButNotAllParallelInvocations</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.html#EventInvocationSynchronousEventServiceTestCase.testWaitingForSomeButNotAllParallelInvocations"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.event_invocation_synchronous_event_service_test_case.EventInvocationSynchronousEventServiceTestCase.testWaitingForSomeButNotAllParallelInvocations" title="Permalink to this definition">¶</a></dt>
  556. <dd></dd></dl>
  557. </dd></dl>
  558. </div>
  559. <div class="section" id="module-grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case">
  560. <span id="grpc-framework-face-testing-future-invocation-asynchronous-event-service-test-case-module"></span><h2>grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case module<a class="headerlink" href="#module-grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case" title="Permalink to this headline">¶</a></h2>
  561. <p>A test to verify an implementation of the Face layer of RPC Framework.</p>
  562. <dl class="class">
  563. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase">
  564. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.</code><code class="descname">FutureInvocationAsynchronousEventServiceTestCase</code><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase" title="Permalink to this definition">¶</a></dt>
  565. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.test_case.FaceTestCase" title="grpc.framework.face.testing.test_case.FaceTestCase"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.test_case.FaceTestCase</span></code></a>, <a class="reference internal" href="#grpc.framework.face.testing.coverage.FullCoverage" title="grpc.framework.face.testing.coverage.FullCoverage"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.coverage.FullCoverage</span></code></a></p>
  566. <p>A test of the Face layer of RPC Framework.</p>
  567. <p>Concrete subclasses must also extend unittest.TestCase.</p>
  568. <dl class="method">
  569. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.setUp">
  570. <code class="descname">setUp</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.setUp"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.setUp" title="Permalink to this definition">¶</a></dt>
  571. <dd><p>See unittest.TestCase.setUp for full specification.</p>
  572. <p>Overriding implementations must call this implementation.</p>
  573. </dd></dl>
  574. <dl class="method">
  575. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.tearDown">
  576. <code class="descname">tearDown</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.tearDown"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.tearDown" title="Permalink to this definition">¶</a></dt>
  577. <dd><p>See unittest.TestCase.tearDown for full specification.</p>
  578. <p>Overriding implementations must call this implementation.</p>
  579. </dd></dl>
  580. <dl class="method">
  581. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testCancelledStreamRequestStreamResponse">
  582. <code class="descname">testCancelledStreamRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testCancelledStreamRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testCancelledStreamRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  583. <dd></dd></dl>
  584. <dl class="method">
  585. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testCancelledStreamRequestUnaryResponse">
  586. <code class="descname">testCancelledStreamRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testCancelledStreamRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testCancelledStreamRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  587. <dd></dd></dl>
  588. <dl class="method">
  589. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testCancelledUnaryRequestStreamResponse">
  590. <code class="descname">testCancelledUnaryRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testCancelledUnaryRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testCancelledUnaryRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  591. <dd></dd></dl>
  592. <dl class="method">
  593. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testCancelledUnaryRequestUnaryResponse">
  594. <code class="descname">testCancelledUnaryRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testCancelledUnaryRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testCancelledUnaryRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  595. <dd></dd></dl>
  596. <dl class="method">
  597. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testExpiredStreamRequestStreamResponse">
  598. <code class="descname">testExpiredStreamRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testExpiredStreamRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testExpiredStreamRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  599. <dd></dd></dl>
  600. <dl class="method">
  601. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testExpiredStreamRequestUnaryResponse">
  602. <code class="descname">testExpiredStreamRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testExpiredStreamRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testExpiredStreamRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  603. <dd></dd></dl>
  604. <dl class="method">
  605. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testExpiredUnaryRequestStreamResponse">
  606. <code class="descname">testExpiredUnaryRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testExpiredUnaryRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testExpiredUnaryRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  607. <dd></dd></dl>
  608. <dl class="method">
  609. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testExpiredUnaryRequestUnaryResponse">
  610. <code class="descname">testExpiredUnaryRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testExpiredUnaryRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testExpiredUnaryRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  611. <dd></dd></dl>
  612. <dl class="method">
  613. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testFailedStreamRequestStreamResponse">
  614. <code class="descname">testFailedStreamRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testFailedStreamRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testFailedStreamRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  615. <dd></dd></dl>
  616. <dl class="method">
  617. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testFailedStreamRequestUnaryResponse">
  618. <code class="descname">testFailedStreamRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testFailedStreamRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testFailedStreamRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  619. <dd></dd></dl>
  620. <dl class="method">
  621. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testFailedUnaryRequestStreamResponse">
  622. <code class="descname">testFailedUnaryRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testFailedUnaryRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testFailedUnaryRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  623. <dd></dd></dl>
  624. <dl class="method">
  625. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testFailedUnaryRequestUnaryResponse">
  626. <code class="descname">testFailedUnaryRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testFailedUnaryRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testFailedUnaryRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  627. <dd></dd></dl>
  628. <dl class="method">
  629. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testParallelInvocations">
  630. <code class="descname">testParallelInvocations</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testParallelInvocations"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testParallelInvocations" title="Permalink to this definition">¶</a></dt>
  631. <dd></dd></dl>
  632. <dl class="method">
  633. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testSequentialInvocations">
  634. <code class="descname">testSequentialInvocations</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testSequentialInvocations"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testSequentialInvocations" title="Permalink to this definition">¶</a></dt>
  635. <dd></dd></dl>
  636. <dl class="method">
  637. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testSuccessfulStreamRequestStreamResponse">
  638. <code class="descname">testSuccessfulStreamRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testSuccessfulStreamRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testSuccessfulStreamRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  639. <dd></dd></dl>
  640. <dl class="method">
  641. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testSuccessfulStreamRequestUnaryResponse">
  642. <code class="descname">testSuccessfulStreamRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testSuccessfulStreamRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testSuccessfulStreamRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  643. <dd></dd></dl>
  644. <dl class="method">
  645. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testSuccessfulUnaryRequestStreamResponse">
  646. <code class="descname">testSuccessfulUnaryRequestStreamResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testSuccessfulUnaryRequestStreamResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testSuccessfulUnaryRequestStreamResponse" title="Permalink to this definition">¶</a></dt>
  647. <dd></dd></dl>
  648. <dl class="method">
  649. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testSuccessfulUnaryRequestUnaryResponse">
  650. <code class="descname">testSuccessfulUnaryRequestUnaryResponse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testSuccessfulUnaryRequestUnaryResponse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testSuccessfulUnaryRequestUnaryResponse" title="Permalink to this definition">¶</a></dt>
  651. <dd></dd></dl>
  652. <dl class="method">
  653. <dt id="grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testWaitingForSomeButNotAllParallelInvocations">
  654. <code class="descname">testWaitingForSomeButNotAllParallelInvocations</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.html#FutureInvocationAsynchronousEventServiceTestCase.testWaitingForSomeButNotAllParallelInvocations"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.future_invocation_asynchronous_event_service_test_case.FutureInvocationAsynchronousEventServiceTestCase.testWaitingForSomeButNotAllParallelInvocations" title="Permalink to this definition">¶</a></dt>
  655. <dd></dd></dl>
  656. </dd></dl>
  657. </div>
  658. <div class="section" id="module-grpc.framework.face.testing.interfaces">
  659. <span id="grpc-framework-face-testing-interfaces-module"></span><h2>grpc.framework.face.testing.interfaces module<a class="headerlink" href="#module-grpc.framework.face.testing.interfaces" title="Permalink to this headline">¶</a></h2>
  660. <p>Interfaces implemented by data sets used in Face-layer tests.</p>
  661. <dl class="class">
  662. <dt id="grpc.framework.face.testing.interfaces.Method">
  663. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.interfaces.</code><code class="descname">Method</code><a class="reference internal" href="_modules/grpc/framework/face/testing/interfaces.html#Method"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.interfaces.Method" title="Permalink to this definition">¶</a></dt>
  664. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  665. <p>An RPC method to be used in tests of RPC implementations.</p>
  666. <dl class="method">
  667. <dt id="grpc.framework.face.testing.interfaces.Method.cardinality">
  668. <code class="descname">cardinality</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/interfaces.html#Method.cardinality"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.interfaces.Method.cardinality" title="Permalink to this definition">¶</a></dt>
  669. <dd><p>Identify the cardinality of the method.</p>
  670. <table class="docutils field-list" frame="void" rules="none">
  671. <col class="field-name" />
  672. <col class="field-body" />
  673. <tbody valign="top">
  674. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">A cardinality.Cardinality value describing the streaming semantics of the
  675. method.</td>
  676. </tr>
  677. </tbody>
  678. </table>
  679. </dd></dl>
  680. <dl class="method">
  681. <dt id="grpc.framework.face.testing.interfaces.Method.deserialize_request">
  682. <code class="descname">deserialize_request</code><span class="sig-paren">(</span><em>serialized_request</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/interfaces.html#Method.deserialize_request"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.interfaces.Method.deserialize_request" title="Permalink to this definition">¶</a></dt>
  683. <dd><p>Synthesize a request object from a given bytestring.</p>
  684. <table class="docutils field-list" frame="void" rules="none">
  685. <col class="field-name" />
  686. <col class="field-body" />
  687. <tbody valign="top">
  688. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>serialized_request</strong> &#8211; A bytestring deserializable into a request object
  689. appropriate for this method.</td>
  690. </tr>
  691. </tbody>
  692. </table>
  693. </dd></dl>
  694. <dl class="method">
  695. <dt id="grpc.framework.face.testing.interfaces.Method.deserialize_response">
  696. <code class="descname">deserialize_response</code><span class="sig-paren">(</span><em>serialized_response</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/interfaces.html#Method.deserialize_response"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.interfaces.Method.deserialize_response" title="Permalink to this definition">¶</a></dt>
  697. <dd><p>Synthesize a response object from a given bytestring.</p>
  698. <table class="docutils field-list" frame="void" rules="none">
  699. <col class="field-name" />
  700. <col class="field-body" />
  701. <tbody valign="top">
  702. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>serialized_response</strong> &#8211; A bytestring deserializable into a response object
  703. appropriate for this method.</td>
  704. </tr>
  705. </tbody>
  706. </table>
  707. </dd></dl>
  708. <dl class="method">
  709. <dt id="grpc.framework.face.testing.interfaces.Method.name">
  710. <code class="descname">name</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/interfaces.html#Method.name"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.interfaces.Method.name" title="Permalink to this definition">¶</a></dt>
  711. <dd><p>Identify the name of the method.</p>
  712. <table class="docutils field-list" frame="void" rules="none">
  713. <col class="field-name" />
  714. <col class="field-body" />
  715. <tbody valign="top">
  716. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">The name of the method.</td>
  717. </tr>
  718. </tbody>
  719. </table>
  720. </dd></dl>
  721. <dl class="method">
  722. <dt id="grpc.framework.face.testing.interfaces.Method.request_class">
  723. <code class="descname">request_class</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/interfaces.html#Method.request_class"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.interfaces.Method.request_class" title="Permalink to this definition">¶</a></dt>
  724. <dd><p>Identify the class used for the method&#8217;s request objects.</p>
  725. <table class="docutils field-list" frame="void" rules="none">
  726. <col class="field-name" />
  727. <col class="field-body" />
  728. <tbody valign="top">
  729. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">The class object of the class to which the method&#8217;s request objects
  730. belong.</td>
  731. </tr>
  732. </tbody>
  733. </table>
  734. </dd></dl>
  735. <dl class="method">
  736. <dt id="grpc.framework.face.testing.interfaces.Method.response_class">
  737. <code class="descname">response_class</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/interfaces.html#Method.response_class"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.interfaces.Method.response_class" title="Permalink to this definition">¶</a></dt>
  738. <dd><p>Identify the class used for the method&#8217;s response objects.</p>
  739. <table class="docutils field-list" frame="void" rules="none">
  740. <col class="field-name" />
  741. <col class="field-body" />
  742. <tbody valign="top">
  743. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">The class object of the class to which the method&#8217;s response objects
  744. belong.</td>
  745. </tr>
  746. </tbody>
  747. </table>
  748. </dd></dl>
  749. <dl class="method">
  750. <dt id="grpc.framework.face.testing.interfaces.Method.serialize_request">
  751. <code class="descname">serialize_request</code><span class="sig-paren">(</span><em>request</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/interfaces.html#Method.serialize_request"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.interfaces.Method.serialize_request" title="Permalink to this definition">¶</a></dt>
  752. <dd><p>Serialize the given request object.</p>
  753. <table class="docutils field-list" frame="void" rules="none">
  754. <col class="field-name" />
  755. <col class="field-body" />
  756. <tbody valign="top">
  757. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>request</strong> &#8211; A request object appropriate for this method.</td>
  758. </tr>
  759. </tbody>
  760. </table>
  761. </dd></dl>
  762. <dl class="method">
  763. <dt id="grpc.framework.face.testing.interfaces.Method.serialize_response">
  764. <code class="descname">serialize_response</code><span class="sig-paren">(</span><em>response</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/interfaces.html#Method.serialize_response"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.interfaces.Method.serialize_response" title="Permalink to this definition">¶</a></dt>
  765. <dd><p>Serialize the given response object.</p>
  766. <table class="docutils field-list" frame="void" rules="none">
  767. <col class="field-name" />
  768. <col class="field-body" />
  769. <tbody valign="top">
  770. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>response</strong> &#8211; A response object appropriate for this method.</td>
  771. </tr>
  772. </tbody>
  773. </table>
  774. </dd></dl>
  775. </dd></dl>
  776. </div>
  777. <div class="section" id="module-grpc.framework.face.testing.serial">
  778. <span id="grpc-framework-face-testing-serial-module"></span><h2>grpc.framework.face.testing.serial module<a class="headerlink" href="#module-grpc.framework.face.testing.serial" title="Permalink to this headline">¶</a></h2>
  779. <p>Utility for serialization in the context of test RPC services.</p>
  780. <dl class="class">
  781. <dt id="grpc.framework.face.testing.serial.Serialization">
  782. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.serial.</code><code class="descname">Serialization</code><a class="reference internal" href="_modules/grpc/framework/face/testing/serial.html#Serialization"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.serial.Serialization" title="Permalink to this definition">¶</a></dt>
  783. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.serial._Serialization</span></code></p>
  784. <p>An aggregation of serialization behaviors for an RPC service.</p>
  785. <dl class="attribute">
  786. <dt id="grpc.framework.face.testing.serial.Serialization.request_serializers">
  787. <code class="descname">request_serializers</code><a class="headerlink" href="#grpc.framework.face.testing.serial.Serialization.request_serializers" title="Permalink to this definition">¶</a></dt>
  788. <dd><p>A dict from method name to request object serializer
  789. behavior.</p>
  790. </dd></dl>
  791. <dl class="attribute">
  792. <dt id="grpc.framework.face.testing.serial.Serialization.request_deserializers">
  793. <code class="descname">request_deserializers</code><a class="headerlink" href="#grpc.framework.face.testing.serial.Serialization.request_deserializers" title="Permalink to this definition">¶</a></dt>
  794. <dd><p>A dict from method name to request object
  795. deserializer behavior.</p>
  796. </dd></dl>
  797. <dl class="attribute">
  798. <dt id="grpc.framework.face.testing.serial.Serialization.response_serializers">
  799. <code class="descname">response_serializers</code><a class="headerlink" href="#grpc.framework.face.testing.serial.Serialization.response_serializers" title="Permalink to this definition">¶</a></dt>
  800. <dd><p>A dict from method name to response object serializer
  801. behavior.</p>
  802. </dd></dl>
  803. <dl class="attribute">
  804. <dt id="grpc.framework.face.testing.serial.Serialization.response_deserializers">
  805. <code class="descname">response_deserializers</code><a class="headerlink" href="#grpc.framework.face.testing.serial.Serialization.response_deserializers" title="Permalink to this definition">¶</a></dt>
  806. <dd><p>A dict from method name to response object
  807. deserializer behavior.</p>
  808. </dd></dl>
  809. </dd></dl>
  810. <dl class="function">
  811. <dt id="grpc.framework.face.testing.serial.serialization">
  812. <code class="descclassname">grpc.framework.face.testing.serial.</code><code class="descname">serialization</code><span class="sig-paren">(</span><em>methods</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/serial.html#serialization"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.serial.serialization" title="Permalink to this definition">¶</a></dt>
  813. <dd><p>Creates a Serialization from a sequences of interfaces.Method objects.</p>
  814. </dd></dl>
  815. </div>
  816. <div class="section" id="module-grpc.framework.face.testing.service">
  817. <span id="grpc-framework-face-testing-service-module"></span><h2>grpc.framework.face.testing.service module<a class="headerlink" href="#module-grpc.framework.face.testing.service" title="Permalink to this headline">¶</a></h2>
  818. <p>Private interfaces implemented by data sets used in Face-layer tests.</p>
  819. <dl class="class">
  820. <dt id="grpc.framework.face.testing.service.StreamStreamTestMessages">
  821. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.service.</code><code class="descname">StreamStreamTestMessages</code><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#StreamStreamTestMessages"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.StreamStreamTestMessages" title="Permalink to this definition">¶</a></dt>
  822. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  823. <p>A type for stream-request-stream-response message pairings.</p>
  824. <dl class="method">
  825. <dt id="grpc.framework.face.testing.service.StreamStreamTestMessages.requests">
  826. <code class="descname">requests</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#StreamStreamTestMessages.requests"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.StreamStreamTestMessages.requests" title="Permalink to this definition">¶</a></dt>
  827. <dd><p>Affords a sequence of request messages.</p>
  828. <p>Implementations of this method should return a different sequences with each
  829. call so that multiple test executions of the test method may be made with
  830. different inputs.</p>
  831. <table class="docutils field-list" frame="void" rules="none">
  832. <col class="field-name" />
  833. <col class="field-body" />
  834. <tbody valign="top">
  835. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">A sequence of request messages.</td>
  836. </tr>
  837. </tbody>
  838. </table>
  839. </dd></dl>
  840. <dl class="method">
  841. <dt id="grpc.framework.face.testing.service.StreamStreamTestMessages.verify">
  842. <code class="descname">verify</code><span class="sig-paren">(</span><em>requests</em>, <em>responses</em>, <em>test_case</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#StreamStreamTestMessages.verify"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.StreamStreamTestMessages.verify" title="Permalink to this definition">¶</a></dt>
  843. <dd><p>Verifies that the computed response matches the given requests.</p>
  844. <table class="docutils field-list" frame="void" rules="none">
  845. <col class="field-name" />
  846. <col class="field-body" />
  847. <tbody valign="top">
  848. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  849. <li><strong>requests</strong> &#8211; A sequence of request messages.</li>
  850. <li><strong>responses</strong> &#8211; A sequence of response messages.</li>
  851. <li><strong>test_case</strong> &#8211; A unittest.TestCase object affording useful assertion methods.</li>
  852. </ul>
  853. </td>
  854. </tr>
  855. <tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><p class="first last"><code class="xref py py-exc docutils literal"><span class="pre">AssertionError</span></code> &#8211;
  856. If the requests and responses do not match, indicating
  857. that there was some problem executing the RPC under test.</p>
  858. </td>
  859. </tr>
  860. </tbody>
  861. </table>
  862. </dd></dl>
  863. </dd></dl>
  864. <dl class="class">
  865. <dt id="grpc.framework.face.testing.service.StreamStreamTestMethodImplementation">
  866. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.service.</code><code class="descname">StreamStreamTestMethodImplementation</code><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#StreamStreamTestMethodImplementation"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.StreamStreamTestMethodImplementation" title="Permalink to this definition">¶</a></dt>
  867. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.interfaces.Method" title="grpc.framework.face.testing.interfaces.Method"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.interfaces.Method</span></code></a></p>
  868. <p>A controllable implementation of a stream-stream RPC method.</p>
  869. <dl class="method">
  870. <dt id="grpc.framework.face.testing.service.StreamStreamTestMethodImplementation.service">
  871. <code class="descname">service</code><span class="sig-paren">(</span><em>response_consumer</em>, <em>context</em>, <em>control</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#StreamStreamTestMethodImplementation.service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.StreamStreamTestMethodImplementation.service" title="Permalink to this definition">¶</a></dt>
  872. <dd><p>Services an RPC that accepts and produces streams of messages.</p>
  873. <table class="docutils field-list" frame="void" rules="none">
  874. <col class="field-name" />
  875. <col class="field-body" />
  876. <tbody valign="top">
  877. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  878. <li><strong>response_consumer</strong> &#8211; A stream.Consumer to be called to accept the response
  879. messages of the RPC.</li>
  880. <li><strong>context</strong> &#8211; A face_interfaces.RpcContext object.</li>
  881. <li><strong>control</strong> &#8211; A test_control.Control to control execution of this method.</li>
  882. </ul>
  883. </td>
  884. </tr>
  885. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">A stream.Consumer with which to accept the request messages of the RPC.
  886. The consumer returned from this method may or may not be invoked to
  887. completion: in the case of RPC abortion, RPC Framework will simply stop
  888. passing messages to this object. Implementations must not assume that
  889. this object will be called to completion of the request stream or even
  890. called at all.</p>
  891. </td>
  892. </tr>
  893. <tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"><p class="first last"><code class="xref py py-exc docutils literal"><span class="pre">abandonment.Abandoned</span></code> &#8211;
  894. May or may not be raised when the RPC has been
  895. aborted.</p>
  896. </td>
  897. </tr>
  898. </tbody>
  899. </table>
  900. </dd></dl>
  901. </dd></dl>
  902. <dl class="class">
  903. <dt id="grpc.framework.face.testing.service.StreamUnaryTestMessages">
  904. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.service.</code><code class="descname">StreamUnaryTestMessages</code><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#StreamUnaryTestMessages"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.StreamUnaryTestMessages" title="Permalink to this definition">¶</a></dt>
  905. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  906. <p>A type for stream-request-unary-response message pairings.</p>
  907. <dl class="method">
  908. <dt id="grpc.framework.face.testing.service.StreamUnaryTestMessages.requests">
  909. <code class="descname">requests</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#StreamUnaryTestMessages.requests"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.StreamUnaryTestMessages.requests" title="Permalink to this definition">¶</a></dt>
  910. <dd><p>Affords a sequence of request messages.</p>
  911. <p>Implementations of this method should return a different sequences with each
  912. call so that multiple test executions of the test method may be made with
  913. different inputs.</p>
  914. <table class="docutils field-list" frame="void" rules="none">
  915. <col class="field-name" />
  916. <col class="field-body" />
  917. <tbody valign="top">
  918. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">A sequence of request messages.</td>
  919. </tr>
  920. </tbody>
  921. </table>
  922. </dd></dl>
  923. <dl class="method">
  924. <dt id="grpc.framework.face.testing.service.StreamUnaryTestMessages.verify">
  925. <code class="descname">verify</code><span class="sig-paren">(</span><em>requests</em>, <em>response</em>, <em>test_case</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#StreamUnaryTestMessages.verify"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.StreamUnaryTestMessages.verify" title="Permalink to this definition">¶</a></dt>
  926. <dd><p>Verifies that the computed response matches the given requests.</p>
  927. <table class="docutils field-list" frame="void" rules="none">
  928. <col class="field-name" />
  929. <col class="field-body" />
  930. <tbody valign="top">
  931. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  932. <li><strong>requests</strong> &#8211; A sequence of request messages.</li>
  933. <li><strong>response</strong> &#8211; A response message.</li>
  934. <li><strong>test_case</strong> &#8211; A unittest.TestCase object affording useful assertion methods.</li>
  935. </ul>
  936. </td>
  937. </tr>
  938. <tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><p class="first last"><code class="xref py py-exc docutils literal"><span class="pre">AssertionError</span></code> &#8211;
  939. If the requests and response do not match, indicating that
  940. there was some problem executing the RPC under test.</p>
  941. </td>
  942. </tr>
  943. </tbody>
  944. </table>
  945. </dd></dl>
  946. </dd></dl>
  947. <dl class="class">
  948. <dt id="grpc.framework.face.testing.service.StreamUnaryTestMethodImplementation">
  949. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.service.</code><code class="descname">StreamUnaryTestMethodImplementation</code><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#StreamUnaryTestMethodImplementation"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.StreamUnaryTestMethodImplementation" title="Permalink to this definition">¶</a></dt>
  950. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.interfaces.Method" title="grpc.framework.face.testing.interfaces.Method"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.interfaces.Method</span></code></a></p>
  951. <p>A controllable implementation of a stream-unary RPC method.</p>
  952. <dl class="method">
  953. <dt id="grpc.framework.face.testing.service.StreamUnaryTestMethodImplementation.service">
  954. <code class="descname">service</code><span class="sig-paren">(</span><em>response_callback</em>, <em>context</em>, <em>control</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#StreamUnaryTestMethodImplementation.service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.StreamUnaryTestMethodImplementation.service" title="Permalink to this definition">¶</a></dt>
  955. <dd><p>Services an RPC that takes a stream of messages and produces one message.</p>
  956. <table class="docutils field-list" frame="void" rules="none">
  957. <col class="field-name" />
  958. <col class="field-body" />
  959. <tbody valign="top">
  960. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  961. <li><strong>response_callback</strong> &#8211; A callback to be called to accept the response message
  962. of the RPC.</li>
  963. <li><strong>context</strong> &#8211; A face_interfaces.RpcContext object.</li>
  964. <li><strong>control</strong> &#8211; A test_control.Control to control execution of this method.</li>
  965. </ul>
  966. </td>
  967. </tr>
  968. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">A stream.Consumer with which to accept the request messages of the RPC.
  969. The consumer returned from this method may or may not be invoked to
  970. completion: in the case of RPC abortion, RPC Framework will simply stop
  971. passing messages to this object. Implementations must not assume that
  972. this object will be called to completion of the request stream or even
  973. called at all.</p>
  974. </td>
  975. </tr>
  976. <tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"><p class="first last"><code class="xref py py-exc docutils literal"><span class="pre">abandonment.Abandoned</span></code> &#8211;
  977. May or may not be raised when the RPC has been
  978. aborted.</p>
  979. </td>
  980. </tr>
  981. </tbody>
  982. </table>
  983. </dd></dl>
  984. </dd></dl>
  985. <dl class="class">
  986. <dt id="grpc.framework.face.testing.service.TestService">
  987. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.service.</code><code class="descname">TestService</code><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#TestService"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.TestService" title="Permalink to this definition">¶</a></dt>
  988. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  989. <p>A specification of implemented RPC methods to use in tests.</p>
  990. <dl class="method">
  991. <dt id="grpc.framework.face.testing.service.TestService.name">
  992. <code class="descname">name</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#TestService.name"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.TestService.name" title="Permalink to this definition">¶</a></dt>
  993. <dd><p>Identifies the RPC service name used during the test.</p>
  994. <table class="docutils field-list" frame="void" rules="none">
  995. <col class="field-name" />
  996. <col class="field-body" />
  997. <tbody valign="top">
  998. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">The RPC service name to be used for the test.</td>
  999. </tr>
  1000. </tbody>
  1001. </table>
  1002. </dd></dl>
  1003. <dl class="method">
  1004. <dt id="grpc.framework.face.testing.service.TestService.stream_stream_scenarios">
  1005. <code class="descname">stream_stream_scenarios</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#TestService.stream_stream_scenarios"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.TestService.stream_stream_scenarios" title="Permalink to this definition">¶</a></dt>
  1006. <dd><p>Affords stream-request-stream-response test methods and their messages.</p>
  1007. <table class="docutils field-list" frame="void" rules="none">
  1008. <col class="field-name" />
  1009. <col class="field-body" />
  1010. <tbody valign="top">
  1011. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">A dict from method name to pair. The first element of the pair is a
  1012. StreamStreamTestMethodImplementation object and the second element is a
  1013. sequence of StreamStreamTestMethodMessages objects.</td>
  1014. </tr>
  1015. </tbody>
  1016. </table>
  1017. </dd></dl>
  1018. <dl class="method">
  1019. <dt id="grpc.framework.face.testing.service.TestService.stream_unary_scenarios">
  1020. <code class="descname">stream_unary_scenarios</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#TestService.stream_unary_scenarios"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.TestService.stream_unary_scenarios" title="Permalink to this definition">¶</a></dt>
  1021. <dd><p>Affords stream-request-unary-response test methods and their messages.</p>
  1022. <table class="docutils field-list" frame="void" rules="none">
  1023. <col class="field-name" />
  1024. <col class="field-body" />
  1025. <tbody valign="top">
  1026. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">A dict from method name to pair. The first element of the pair is a
  1027. StreamUnaryTestMethodImplementation object and the second element is a
  1028. sequence of StreamUnaryTestMethodMessages objects.</td>
  1029. </tr>
  1030. </tbody>
  1031. </table>
  1032. </dd></dl>
  1033. <dl class="method">
  1034. <dt id="grpc.framework.face.testing.service.TestService.unary_stream_scenarios">
  1035. <code class="descname">unary_stream_scenarios</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#TestService.unary_stream_scenarios"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.TestService.unary_stream_scenarios" title="Permalink to this definition">¶</a></dt>
  1036. <dd><p>Affords unary-request-stream-response test methods and their messages.</p>
  1037. <table class="docutils field-list" frame="void" rules="none">
  1038. <col class="field-name" />
  1039. <col class="field-body" />
  1040. <tbody valign="top">
  1041. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">A dict from method name to pair. The first element of the pair is a
  1042. UnaryStreamTestMethodImplementation object and the second element is a
  1043. sequence of UnaryStreamTestMethodMessages objects.</td>
  1044. </tr>
  1045. </tbody>
  1046. </table>
  1047. </dd></dl>
  1048. <dl class="method">
  1049. <dt id="grpc.framework.face.testing.service.TestService.unary_unary_scenarios">
  1050. <code class="descname">unary_unary_scenarios</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#TestService.unary_unary_scenarios"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.TestService.unary_unary_scenarios" title="Permalink to this definition">¶</a></dt>
  1051. <dd><p>Affords unary-request-unary-response test methods and their messages.</p>
  1052. <table class="docutils field-list" frame="void" rules="none">
  1053. <col class="field-name" />
  1054. <col class="field-body" />
  1055. <tbody valign="top">
  1056. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">A dict from method name to pair. The first element of the pair
  1057. is a UnaryUnaryTestMethodImplementation object and the second element
  1058. is a sequence of UnaryUnaryTestMethodMessages objects.</td>
  1059. </tr>
  1060. </tbody>
  1061. </table>
  1062. </dd></dl>
  1063. </dd></dl>
  1064. <dl class="class">
  1065. <dt id="grpc.framework.face.testing.service.UnaryStreamTestMessages">
  1066. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.service.</code><code class="descname">UnaryStreamTestMessages</code><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#UnaryStreamTestMessages"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.UnaryStreamTestMessages" title="Permalink to this definition">¶</a></dt>
  1067. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  1068. <p>A type for unary-request-stream-response message pairings.</p>
  1069. <dl class="method">
  1070. <dt id="grpc.framework.face.testing.service.UnaryStreamTestMessages.request">
  1071. <code class="descname">request</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#UnaryStreamTestMessages.request"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.UnaryStreamTestMessages.request" title="Permalink to this definition">¶</a></dt>
  1072. <dd><p>Affords a request message.</p>
  1073. <p>Implementations of this method should return a different message with each
  1074. call so that multiple test executions of the test method may be made with
  1075. different inputs.</p>
  1076. <table class="docutils field-list" frame="void" rules="none">
  1077. <col class="field-name" />
  1078. <col class="field-body" />
  1079. <tbody valign="top">
  1080. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">A request message.</td>
  1081. </tr>
  1082. </tbody>
  1083. </table>
  1084. </dd></dl>
  1085. <dl class="method">
  1086. <dt id="grpc.framework.face.testing.service.UnaryStreamTestMessages.verify">
  1087. <code class="descname">verify</code><span class="sig-paren">(</span><em>request</em>, <em>responses</em>, <em>test_case</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#UnaryStreamTestMessages.verify"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.UnaryStreamTestMessages.verify" title="Permalink to this definition">¶</a></dt>
  1088. <dd><p>Verifies that the computed responses match the given request.</p>
  1089. <table class="docutils field-list" frame="void" rules="none">
  1090. <col class="field-name" />
  1091. <col class="field-body" />
  1092. <tbody valign="top">
  1093. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1094. <li><strong>request</strong> &#8211; A request message.</li>
  1095. <li><strong>responses</strong> &#8211; A sequence of response messages.</li>
  1096. <li><strong>test_case</strong> &#8211; A unittest.TestCase object affording useful assertion methods.</li>
  1097. </ul>
  1098. </td>
  1099. </tr>
  1100. <tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><p class="first last"><code class="xref py py-exc docutils literal"><span class="pre">AssertionError</span></code> &#8211;
  1101. If the request and responses do not match, indicating that
  1102. there was some problem executing the RPC under test.</p>
  1103. </td>
  1104. </tr>
  1105. </tbody>
  1106. </table>
  1107. </dd></dl>
  1108. </dd></dl>
  1109. <dl class="class">
  1110. <dt id="grpc.framework.face.testing.service.UnaryStreamTestMethodImplementation">
  1111. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.service.</code><code class="descname">UnaryStreamTestMethodImplementation</code><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#UnaryStreamTestMethodImplementation"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.UnaryStreamTestMethodImplementation" title="Permalink to this definition">¶</a></dt>
  1112. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.interfaces.Method" title="grpc.framework.face.testing.interfaces.Method"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.interfaces.Method</span></code></a></p>
  1113. <p>A controllable implementation of a unary-stream RPC method.</p>
  1114. <dl class="method">
  1115. <dt id="grpc.framework.face.testing.service.UnaryStreamTestMethodImplementation.service">
  1116. <code class="descname">service</code><span class="sig-paren">(</span><em>request</em>, <em>response_consumer</em>, <em>context</em>, <em>control</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#UnaryStreamTestMethodImplementation.service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.UnaryStreamTestMethodImplementation.service" title="Permalink to this definition">¶</a></dt>
  1117. <dd><p>Services an RPC that takes one message and produces a stream of messages.</p>
  1118. <table class="docutils field-list" frame="void" rules="none">
  1119. <col class="field-name" />
  1120. <col class="field-body" />
  1121. <tbody valign="top">
  1122. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1123. <li><strong>request</strong> &#8211; The single request message for the RPC.</li>
  1124. <li><strong>response_consumer</strong> &#8211; A stream.Consumer to be called to accept the response
  1125. messages of the RPC.</li>
  1126. <li><strong>context</strong> &#8211; A face_interfaces.RpcContext object.</li>
  1127. <li><strong>control</strong> &#8211; A test_control.Control to control execution of this method.</li>
  1128. </ul>
  1129. </td>
  1130. </tr>
  1131. <tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><p class="first last"><code class="xref py py-exc docutils literal"><span class="pre">abandonment.Abandoned</span></code> &#8211;
  1132. May or may not be raised when the RPC has been
  1133. aborted.</p>
  1134. </td>
  1135. </tr>
  1136. </tbody>
  1137. </table>
  1138. </dd></dl>
  1139. </dd></dl>
  1140. <dl class="class">
  1141. <dt id="grpc.framework.face.testing.service.UnaryUnaryTestMessages">
  1142. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.service.</code><code class="descname">UnaryUnaryTestMessages</code><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#UnaryUnaryTestMessages"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.UnaryUnaryTestMessages" title="Permalink to this definition">¶</a></dt>
  1143. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  1144. <p>A type for unary-request-unary-response message pairings.</p>
  1145. <dl class="method">
  1146. <dt id="grpc.framework.face.testing.service.UnaryUnaryTestMessages.request">
  1147. <code class="descname">request</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#UnaryUnaryTestMessages.request"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.UnaryUnaryTestMessages.request" title="Permalink to this definition">¶</a></dt>
  1148. <dd><p>Affords a request message.</p>
  1149. <p>Implementations of this method should return a different message with each
  1150. call so that multiple test executions of the test method may be made with
  1151. different inputs.</p>
  1152. <table class="docutils field-list" frame="void" rules="none">
  1153. <col class="field-name" />
  1154. <col class="field-body" />
  1155. <tbody valign="top">
  1156. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">A request message.</td>
  1157. </tr>
  1158. </tbody>
  1159. </table>
  1160. </dd></dl>
  1161. <dl class="method">
  1162. <dt id="grpc.framework.face.testing.service.UnaryUnaryTestMessages.verify">
  1163. <code class="descname">verify</code><span class="sig-paren">(</span><em>request</em>, <em>response</em>, <em>test_case</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#UnaryUnaryTestMessages.verify"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.UnaryUnaryTestMessages.verify" title="Permalink to this definition">¶</a></dt>
  1164. <dd><p>Verifies that the computed response matches the given request.</p>
  1165. <table class="docutils field-list" frame="void" rules="none">
  1166. <col class="field-name" />
  1167. <col class="field-body" />
  1168. <tbody valign="top">
  1169. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1170. <li><strong>request</strong> &#8211; A request message.</li>
  1171. <li><strong>response</strong> &#8211; A response message.</li>
  1172. <li><strong>test_case</strong> &#8211; A unittest.TestCase object affording useful assertion methods.</li>
  1173. </ul>
  1174. </td>
  1175. </tr>
  1176. <tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><p class="first last"><code class="xref py py-exc docutils literal"><span class="pre">AssertionError</span></code> &#8211;
  1177. If the request and response do not match, indicating that
  1178. there was some problem executing the RPC under test.</p>
  1179. </td>
  1180. </tr>
  1181. </tbody>
  1182. </table>
  1183. </dd></dl>
  1184. </dd></dl>
  1185. <dl class="class">
  1186. <dt id="grpc.framework.face.testing.service.UnaryUnaryTestMethodImplementation">
  1187. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.service.</code><code class="descname">UnaryUnaryTestMethodImplementation</code><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#UnaryUnaryTestMethodImplementation"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.UnaryUnaryTestMethodImplementation" title="Permalink to this definition">¶</a></dt>
  1188. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.interfaces.Method" title="grpc.framework.face.testing.interfaces.Method"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.interfaces.Method</span></code></a></p>
  1189. <p>A controllable implementation of a unary-unary RPC method.</p>
  1190. <dl class="method">
  1191. <dt id="grpc.framework.face.testing.service.UnaryUnaryTestMethodImplementation.service">
  1192. <code class="descname">service</code><span class="sig-paren">(</span><em>request</em>, <em>response_callback</em>, <em>context</em>, <em>control</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/service.html#UnaryUnaryTestMethodImplementation.service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.service.UnaryUnaryTestMethodImplementation.service" title="Permalink to this definition">¶</a></dt>
  1193. <dd><p>Services an RPC that accepts one message and produces one message.</p>
  1194. <table class="docutils field-list" frame="void" rules="none">
  1195. <col class="field-name" />
  1196. <col class="field-body" />
  1197. <tbody valign="top">
  1198. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1199. <li><strong>request</strong> &#8211; The single request message for the RPC.</li>
  1200. <li><strong>response_callback</strong> &#8211; A callback to be called to accept the response message
  1201. of the RPC.</li>
  1202. <li><strong>context</strong> &#8211; An face_interfaces.RpcContext object.</li>
  1203. <li><strong>control</strong> &#8211; A test_control.Control to control execution of this method.</li>
  1204. </ul>
  1205. </td>
  1206. </tr>
  1207. <tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><p class="first last"><code class="xref py py-exc docutils literal"><span class="pre">abandonment.Abandoned</span></code> &#8211;
  1208. May or may not be raised when the RPC has been
  1209. aborted.</p>
  1210. </td>
  1211. </tr>
  1212. </tbody>
  1213. </table>
  1214. </dd></dl>
  1215. </dd></dl>
  1216. </div>
  1217. <div class="section" id="module-grpc.framework.face.testing.stock_service">
  1218. <span id="grpc-framework-face-testing-stock-service-module"></span><h2>grpc.framework.face.testing.stock_service module<a class="headerlink" href="#module-grpc.framework.face.testing.stock_service" title="Permalink to this headline">¶</a></h2>
  1219. <p>Examples of Python implementations of the stock.proto Stock service.</p>
  1220. <dl class="class">
  1221. <dt id="grpc.framework.face.testing.stock_service.GetHighestTradePrice">
  1222. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.stock_service.</code><code class="descname">GetHighestTradePrice</code><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetHighestTradePrice"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetHighestTradePrice" title="Permalink to this definition">¶</a></dt>
  1223. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.service.StreamUnaryTestMethodImplementation" title="grpc.framework.face.testing.service.StreamUnaryTestMethodImplementation"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.service.StreamUnaryTestMethodImplementation</span></code></a></p>
  1224. <p>GetHighestTradePrice for use in tests.</p>
  1225. <dl class="method">
  1226. <dt id="grpc.framework.face.testing.stock_service.GetHighestTradePrice.cardinality">
  1227. <code class="descname">cardinality</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetHighestTradePrice.cardinality"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetHighestTradePrice.cardinality" title="Permalink to this definition">¶</a></dt>
  1228. <dd></dd></dl>
  1229. <dl class="method">
  1230. <dt id="grpc.framework.face.testing.stock_service.GetHighestTradePrice.deserialize_request">
  1231. <code class="descname">deserialize_request</code><span class="sig-paren">(</span><em>serialized_request</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetHighestTradePrice.deserialize_request"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetHighestTradePrice.deserialize_request" title="Permalink to this definition">¶</a></dt>
  1232. <dd></dd></dl>
  1233. <dl class="method">
  1234. <dt id="grpc.framework.face.testing.stock_service.GetHighestTradePrice.deserialize_response">
  1235. <code class="descname">deserialize_response</code><span class="sig-paren">(</span><em>serialized_response</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetHighestTradePrice.deserialize_response"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetHighestTradePrice.deserialize_response" title="Permalink to this definition">¶</a></dt>
  1236. <dd></dd></dl>
  1237. <dl class="method">
  1238. <dt id="grpc.framework.face.testing.stock_service.GetHighestTradePrice.name">
  1239. <code class="descname">name</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetHighestTradePrice.name"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetHighestTradePrice.name" title="Permalink to this definition">¶</a></dt>
  1240. <dd></dd></dl>
  1241. <dl class="method">
  1242. <dt id="grpc.framework.face.testing.stock_service.GetHighestTradePrice.request_class">
  1243. <code class="descname">request_class</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetHighestTradePrice.request_class"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetHighestTradePrice.request_class" title="Permalink to this definition">¶</a></dt>
  1244. <dd></dd></dl>
  1245. <dl class="method">
  1246. <dt id="grpc.framework.face.testing.stock_service.GetHighestTradePrice.response_class">
  1247. <code class="descname">response_class</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetHighestTradePrice.response_class"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetHighestTradePrice.response_class" title="Permalink to this definition">¶</a></dt>
  1248. <dd></dd></dl>
  1249. <dl class="method">
  1250. <dt id="grpc.framework.face.testing.stock_service.GetHighestTradePrice.serialize_request">
  1251. <code class="descname">serialize_request</code><span class="sig-paren">(</span><em>request</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetHighestTradePrice.serialize_request"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetHighestTradePrice.serialize_request" title="Permalink to this definition">¶</a></dt>
  1252. <dd></dd></dl>
  1253. <dl class="method">
  1254. <dt id="grpc.framework.face.testing.stock_service.GetHighestTradePrice.serialize_response">
  1255. <code class="descname">serialize_response</code><span class="sig-paren">(</span><em>response</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetHighestTradePrice.serialize_response"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetHighestTradePrice.serialize_response" title="Permalink to this definition">¶</a></dt>
  1256. <dd></dd></dl>
  1257. <dl class="method">
  1258. <dt id="grpc.framework.face.testing.stock_service.GetHighestTradePrice.service">
  1259. <code class="descname">service</code><span class="sig-paren">(</span><em>response_callback</em>, <em>context</em>, <em>control</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetHighestTradePrice.service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetHighestTradePrice.service" title="Permalink to this definition">¶</a></dt>
  1260. <dd></dd></dl>
  1261. </dd></dl>
  1262. <dl class="class">
  1263. <dt id="grpc.framework.face.testing.stock_service.GetHighestTradePriceMessages">
  1264. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.stock_service.</code><code class="descname">GetHighestTradePriceMessages</code><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetHighestTradePriceMessages"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetHighestTradePriceMessages" title="Permalink to this definition">¶</a></dt>
  1265. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.service.StreamUnaryTestMessages" title="grpc.framework.face.testing.service.StreamUnaryTestMessages"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.service.StreamUnaryTestMessages</span></code></a></p>
  1266. <dl class="method">
  1267. <dt id="grpc.framework.face.testing.stock_service.GetHighestTradePriceMessages.requests">
  1268. <code class="descname">requests</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetHighestTradePriceMessages.requests"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetHighestTradePriceMessages.requests" title="Permalink to this definition">¶</a></dt>
  1269. <dd></dd></dl>
  1270. <dl class="method">
  1271. <dt id="grpc.framework.face.testing.stock_service.GetHighestTradePriceMessages.verify">
  1272. <code class="descname">verify</code><span class="sig-paren">(</span><em>requests</em>, <em>response</em>, <em>test_case</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetHighestTradePriceMessages.verify"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetHighestTradePriceMessages.verify" title="Permalink to this definition">¶</a></dt>
  1273. <dd></dd></dl>
  1274. </dd></dl>
  1275. <dl class="class">
  1276. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePrice">
  1277. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.stock_service.</code><code class="descname">GetLastTradePrice</code><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePrice"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePrice" title="Permalink to this definition">¶</a></dt>
  1278. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.service.UnaryUnaryTestMethodImplementation" title="grpc.framework.face.testing.service.UnaryUnaryTestMethodImplementation"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.service.UnaryUnaryTestMethodImplementation</span></code></a></p>
  1279. <p>GetLastTradePrice for use in tests.</p>
  1280. <dl class="method">
  1281. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePrice.cardinality">
  1282. <code class="descname">cardinality</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePrice.cardinality"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePrice.cardinality" title="Permalink to this definition">¶</a></dt>
  1283. <dd></dd></dl>
  1284. <dl class="method">
  1285. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePrice.deserialize_request">
  1286. <code class="descname">deserialize_request</code><span class="sig-paren">(</span><em>serialized_request</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePrice.deserialize_request"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePrice.deserialize_request" title="Permalink to this definition">¶</a></dt>
  1287. <dd></dd></dl>
  1288. <dl class="method">
  1289. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePrice.deserialize_response">
  1290. <code class="descname">deserialize_response</code><span class="sig-paren">(</span><em>serialized_response</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePrice.deserialize_response"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePrice.deserialize_response" title="Permalink to this definition">¶</a></dt>
  1291. <dd></dd></dl>
  1292. <dl class="method">
  1293. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePrice.name">
  1294. <code class="descname">name</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePrice.name"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePrice.name" title="Permalink to this definition">¶</a></dt>
  1295. <dd></dd></dl>
  1296. <dl class="method">
  1297. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePrice.request_class">
  1298. <code class="descname">request_class</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePrice.request_class"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePrice.request_class" title="Permalink to this definition">¶</a></dt>
  1299. <dd></dd></dl>
  1300. <dl class="method">
  1301. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePrice.response_class">
  1302. <code class="descname">response_class</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePrice.response_class"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePrice.response_class" title="Permalink to this definition">¶</a></dt>
  1303. <dd></dd></dl>
  1304. <dl class="method">
  1305. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePrice.serialize_request">
  1306. <code class="descname">serialize_request</code><span class="sig-paren">(</span><em>request</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePrice.serialize_request"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePrice.serialize_request" title="Permalink to this definition">¶</a></dt>
  1307. <dd></dd></dl>
  1308. <dl class="method">
  1309. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePrice.serialize_response">
  1310. <code class="descname">serialize_response</code><span class="sig-paren">(</span><em>response</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePrice.serialize_response"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePrice.serialize_response" title="Permalink to this definition">¶</a></dt>
  1311. <dd></dd></dl>
  1312. <dl class="method">
  1313. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePrice.service">
  1314. <code class="descname">service</code><span class="sig-paren">(</span><em>request</em>, <em>response_callback</em>, <em>context</em>, <em>control</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePrice.service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePrice.service" title="Permalink to this definition">¶</a></dt>
  1315. <dd></dd></dl>
  1316. </dd></dl>
  1317. <dl class="class">
  1318. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePriceMessages">
  1319. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.stock_service.</code><code class="descname">GetLastTradePriceMessages</code><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePriceMessages"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePriceMessages" title="Permalink to this definition">¶</a></dt>
  1320. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.service.UnaryUnaryTestMessages" title="grpc.framework.face.testing.service.UnaryUnaryTestMessages"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.service.UnaryUnaryTestMessages</span></code></a></p>
  1321. <dl class="method">
  1322. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePriceMessages.request">
  1323. <code class="descname">request</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePriceMessages.request"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePriceMessages.request" title="Permalink to this definition">¶</a></dt>
  1324. <dd></dd></dl>
  1325. <dl class="method">
  1326. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePriceMessages.verify">
  1327. <code class="descname">verify</code><span class="sig-paren">(</span><em>request</em>, <em>response</em>, <em>test_case</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePriceMessages.verify"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePriceMessages.verify" title="Permalink to this definition">¶</a></dt>
  1328. <dd></dd></dl>
  1329. </dd></dl>
  1330. <dl class="class">
  1331. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple">
  1332. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.stock_service.</code><code class="descname">GetLastTradePriceMultiple</code><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePriceMultiple"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple" title="Permalink to this definition">¶</a></dt>
  1333. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.service.StreamStreamTestMethodImplementation" title="grpc.framework.face.testing.service.StreamStreamTestMethodImplementation"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.service.StreamStreamTestMethodImplementation</span></code></a></p>
  1334. <p>GetLastTradePriceMultiple for use in tests.</p>
  1335. <dl class="method">
  1336. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.cardinality">
  1337. <code class="descname">cardinality</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePriceMultiple.cardinality"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.cardinality" title="Permalink to this definition">¶</a></dt>
  1338. <dd></dd></dl>
  1339. <dl class="method">
  1340. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.deserialize_request">
  1341. <code class="descname">deserialize_request</code><span class="sig-paren">(</span><em>serialized_request</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePriceMultiple.deserialize_request"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.deserialize_request" title="Permalink to this definition">¶</a></dt>
  1342. <dd></dd></dl>
  1343. <dl class="method">
  1344. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.deserialize_response">
  1345. <code class="descname">deserialize_response</code><span class="sig-paren">(</span><em>serialized_response</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePriceMultiple.deserialize_response"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.deserialize_response" title="Permalink to this definition">¶</a></dt>
  1346. <dd></dd></dl>
  1347. <dl class="method">
  1348. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.name">
  1349. <code class="descname">name</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePriceMultiple.name"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.name" title="Permalink to this definition">¶</a></dt>
  1350. <dd></dd></dl>
  1351. <dl class="method">
  1352. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.request_class">
  1353. <code class="descname">request_class</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePriceMultiple.request_class"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.request_class" title="Permalink to this definition">¶</a></dt>
  1354. <dd></dd></dl>
  1355. <dl class="method">
  1356. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.response_class">
  1357. <code class="descname">response_class</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePriceMultiple.response_class"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.response_class" title="Permalink to this definition">¶</a></dt>
  1358. <dd></dd></dl>
  1359. <dl class="method">
  1360. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.serialize_request">
  1361. <code class="descname">serialize_request</code><span class="sig-paren">(</span><em>request</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePriceMultiple.serialize_request"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.serialize_request" title="Permalink to this definition">¶</a></dt>
  1362. <dd></dd></dl>
  1363. <dl class="method">
  1364. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.serialize_response">
  1365. <code class="descname">serialize_response</code><span class="sig-paren">(</span><em>response</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePriceMultiple.serialize_response"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.serialize_response" title="Permalink to this definition">¶</a></dt>
  1366. <dd></dd></dl>
  1367. <dl class="method">
  1368. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.service">
  1369. <code class="descname">service</code><span class="sig-paren">(</span><em>response_consumer</em>, <em>context</em>, <em>control</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePriceMultiple.service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePriceMultiple.service" title="Permalink to this definition">¶</a></dt>
  1370. <dd></dd></dl>
  1371. </dd></dl>
  1372. <dl class="class">
  1373. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePriceMultipleMessages">
  1374. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.stock_service.</code><code class="descname">GetLastTradePriceMultipleMessages</code><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePriceMultipleMessages"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePriceMultipleMessages" title="Permalink to this definition">¶</a></dt>
  1375. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.service.StreamStreamTestMessages" title="grpc.framework.face.testing.service.StreamStreamTestMessages"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.service.StreamStreamTestMessages</span></code></a></p>
  1376. <p>Pairs of message streams for use with GetLastTradePriceMultiple.</p>
  1377. <dl class="method">
  1378. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePriceMultipleMessages.requests">
  1379. <code class="descname">requests</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePriceMultipleMessages.requests"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePriceMultipleMessages.requests" title="Permalink to this definition">¶</a></dt>
  1380. <dd></dd></dl>
  1381. <dl class="method">
  1382. <dt id="grpc.framework.face.testing.stock_service.GetLastTradePriceMultipleMessages.verify">
  1383. <code class="descname">verify</code><span class="sig-paren">(</span><em>requests</em>, <em>responses</em>, <em>test_case</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#GetLastTradePriceMultipleMessages.verify"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.GetLastTradePriceMultipleMessages.verify" title="Permalink to this definition">¶</a></dt>
  1384. <dd></dd></dl>
  1385. </dd></dl>
  1386. <dl class="class">
  1387. <dt id="grpc.framework.face.testing.stock_service.StockTestService">
  1388. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.stock_service.</code><code class="descname">StockTestService</code><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#StockTestService"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.StockTestService" title="Permalink to this definition">¶</a></dt>
  1389. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.service.TestService" title="grpc.framework.face.testing.service.TestService"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.service.TestService</span></code></a></p>
  1390. <p>A corpus of test data with one method of each RPC cardinality.</p>
  1391. <dl class="method">
  1392. <dt id="grpc.framework.face.testing.stock_service.StockTestService.name">
  1393. <code class="descname">name</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#StockTestService.name"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.StockTestService.name" title="Permalink to this definition">¶</a></dt>
  1394. <dd></dd></dl>
  1395. <dl class="method">
  1396. <dt id="grpc.framework.face.testing.stock_service.StockTestService.stream_stream_scenarios">
  1397. <code class="descname">stream_stream_scenarios</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#StockTestService.stream_stream_scenarios"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.StockTestService.stream_stream_scenarios" title="Permalink to this definition">¶</a></dt>
  1398. <dd></dd></dl>
  1399. <dl class="method">
  1400. <dt id="grpc.framework.face.testing.stock_service.StockTestService.stream_unary_scenarios">
  1401. <code class="descname">stream_unary_scenarios</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#StockTestService.stream_unary_scenarios"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.StockTestService.stream_unary_scenarios" title="Permalink to this definition">¶</a></dt>
  1402. <dd></dd></dl>
  1403. <dl class="method">
  1404. <dt id="grpc.framework.face.testing.stock_service.StockTestService.unary_stream_scenarios">
  1405. <code class="descname">unary_stream_scenarios</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#StockTestService.unary_stream_scenarios"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.StockTestService.unary_stream_scenarios" title="Permalink to this definition">¶</a></dt>
  1406. <dd></dd></dl>
  1407. <dl class="method">
  1408. <dt id="grpc.framework.face.testing.stock_service.StockTestService.unary_unary_scenarios">
  1409. <code class="descname">unary_unary_scenarios</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#StockTestService.unary_unary_scenarios"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.StockTestService.unary_unary_scenarios" title="Permalink to this definition">¶</a></dt>
  1410. <dd></dd></dl>
  1411. </dd></dl>
  1412. <dl class="class">
  1413. <dt id="grpc.framework.face.testing.stock_service.WatchFutureTrades">
  1414. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.stock_service.</code><code class="descname">WatchFutureTrades</code><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#WatchFutureTrades"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.WatchFutureTrades" title="Permalink to this definition">¶</a></dt>
  1415. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.service.UnaryStreamTestMethodImplementation" title="grpc.framework.face.testing.service.UnaryStreamTestMethodImplementation"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.service.UnaryStreamTestMethodImplementation</span></code></a></p>
  1416. <p>WatchFutureTrades for use in tests.</p>
  1417. <dl class="method">
  1418. <dt id="grpc.framework.face.testing.stock_service.WatchFutureTrades.cardinality">
  1419. <code class="descname">cardinality</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#WatchFutureTrades.cardinality"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.WatchFutureTrades.cardinality" title="Permalink to this definition">¶</a></dt>
  1420. <dd></dd></dl>
  1421. <dl class="method">
  1422. <dt id="grpc.framework.face.testing.stock_service.WatchFutureTrades.deserialize_request">
  1423. <code class="descname">deserialize_request</code><span class="sig-paren">(</span><em>serialized_request</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#WatchFutureTrades.deserialize_request"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.WatchFutureTrades.deserialize_request" title="Permalink to this definition">¶</a></dt>
  1424. <dd></dd></dl>
  1425. <dl class="method">
  1426. <dt id="grpc.framework.face.testing.stock_service.WatchFutureTrades.deserialize_response">
  1427. <code class="descname">deserialize_response</code><span class="sig-paren">(</span><em>serialized_response</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#WatchFutureTrades.deserialize_response"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.WatchFutureTrades.deserialize_response" title="Permalink to this definition">¶</a></dt>
  1428. <dd></dd></dl>
  1429. <dl class="method">
  1430. <dt id="grpc.framework.face.testing.stock_service.WatchFutureTrades.name">
  1431. <code class="descname">name</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#WatchFutureTrades.name"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.WatchFutureTrades.name" title="Permalink to this definition">¶</a></dt>
  1432. <dd></dd></dl>
  1433. <dl class="method">
  1434. <dt id="grpc.framework.face.testing.stock_service.WatchFutureTrades.request_class">
  1435. <code class="descname">request_class</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#WatchFutureTrades.request_class"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.WatchFutureTrades.request_class" title="Permalink to this definition">¶</a></dt>
  1436. <dd></dd></dl>
  1437. <dl class="method">
  1438. <dt id="grpc.framework.face.testing.stock_service.WatchFutureTrades.response_class">
  1439. <code class="descname">response_class</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#WatchFutureTrades.response_class"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.WatchFutureTrades.response_class" title="Permalink to this definition">¶</a></dt>
  1440. <dd></dd></dl>
  1441. <dl class="method">
  1442. <dt id="grpc.framework.face.testing.stock_service.WatchFutureTrades.serialize_request">
  1443. <code class="descname">serialize_request</code><span class="sig-paren">(</span><em>request</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#WatchFutureTrades.serialize_request"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.WatchFutureTrades.serialize_request" title="Permalink to this definition">¶</a></dt>
  1444. <dd></dd></dl>
  1445. <dl class="method">
  1446. <dt id="grpc.framework.face.testing.stock_service.WatchFutureTrades.serialize_response">
  1447. <code class="descname">serialize_response</code><span class="sig-paren">(</span><em>response</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#WatchFutureTrades.serialize_response"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.WatchFutureTrades.serialize_response" title="Permalink to this definition">¶</a></dt>
  1448. <dd></dd></dl>
  1449. <dl class="method">
  1450. <dt id="grpc.framework.face.testing.stock_service.WatchFutureTrades.service">
  1451. <code class="descname">service</code><span class="sig-paren">(</span><em>request</em>, <em>response_consumer</em>, <em>context</em>, <em>control</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#WatchFutureTrades.service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.WatchFutureTrades.service" title="Permalink to this definition">¶</a></dt>
  1452. <dd></dd></dl>
  1453. </dd></dl>
  1454. <dl class="class">
  1455. <dt id="grpc.framework.face.testing.stock_service.WatchFutureTradesMessages">
  1456. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.stock_service.</code><code class="descname">WatchFutureTradesMessages</code><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#WatchFutureTradesMessages"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.WatchFutureTradesMessages" title="Permalink to this definition">¶</a></dt>
  1457. <dd><p>Bases: <a class="reference internal" href="#grpc.framework.face.testing.service.UnaryStreamTestMessages" title="grpc.framework.face.testing.service.UnaryStreamTestMessages"><code class="xref py py-class docutils literal"><span class="pre">grpc.framework.face.testing.service.UnaryStreamTestMessages</span></code></a></p>
  1458. <p>Pairs of a single request message and a sequence of response messages.</p>
  1459. <dl class="method">
  1460. <dt id="grpc.framework.face.testing.stock_service.WatchFutureTradesMessages.request">
  1461. <code class="descname">request</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#WatchFutureTradesMessages.request"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.WatchFutureTradesMessages.request" title="Permalink to this definition">¶</a></dt>
  1462. <dd></dd></dl>
  1463. <dl class="method">
  1464. <dt id="grpc.framework.face.testing.stock_service.WatchFutureTradesMessages.verify">
  1465. <code class="descname">verify</code><span class="sig-paren">(</span><em>request</em>, <em>responses</em>, <em>test_case</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/stock_service.html#WatchFutureTradesMessages.verify"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.stock_service.WatchFutureTradesMessages.verify" title="Permalink to this definition">¶</a></dt>
  1466. <dd></dd></dl>
  1467. </dd></dl>
  1468. </div>
  1469. <div class="section" id="module-grpc.framework.face.testing.test_case">
  1470. <span id="grpc-framework-face-testing-test-case-module"></span><h2>grpc.framework.face.testing.test_case module<a class="headerlink" href="#module-grpc.framework.face.testing.test_case" title="Permalink to this headline">¶</a></h2>
  1471. <p>Tools for creating tests of implementations of the Face layer.</p>
  1472. <dl class="class">
  1473. <dt id="grpc.framework.face.testing.test_case.FaceTestCase">
  1474. <em class="property">class </em><code class="descclassname">grpc.framework.face.testing.test_case.</code><code class="descname">FaceTestCase</code><a class="reference internal" href="_modules/grpc/framework/face/testing/test_case.html#FaceTestCase"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.test_case.FaceTestCase" title="Permalink to this definition">¶</a></dt>
  1475. <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
  1476. <p>Describes a test of the Face Layer of RPC Framework.</p>
  1477. <p>Concrete subclasses must also inherit from unittest.TestCase and from at least
  1478. one class that defines test methods.</p>
  1479. <dl class="method">
  1480. <dt id="grpc.framework.face.testing.test_case.FaceTestCase.set_up_implementation">
  1481. <code class="descname">set_up_implementation</code><span class="sig-paren">(</span><em>name</em>, <em>methods</em>, <em>method_implementations</em>, <em>multi_method_implementation</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/test_case.html#FaceTestCase.set_up_implementation"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.test_case.FaceTestCase.set_up_implementation" title="Permalink to this definition">¶</a></dt>
  1482. <dd><p>Instantiates the Face Layer implementation under test.</p>
  1483. <table class="docutils field-list" frame="void" rules="none">
  1484. <col class="field-name" />
  1485. <col class="field-body" />
  1486. <tbody valign="top">
  1487. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1488. <li><strong>name</strong> &#8211; The service name to be used in the test.</li>
  1489. <li><strong>methods</strong> &#8211; A sequence of interfaces.Method objects describing the RPC
  1490. methods that will be called during the test.</li>
  1491. <li><strong>method_implementations</strong> &#8211; A dictionary from string RPC method name to
  1492. face_interfaces.MethodImplementation object specifying
  1493. implementation of an RPC method.</li>
  1494. <li><strong>multi_method_implementation</strong> &#8211; An face_interfaces.MultiMethodImplementation
  1495. or None.</li>
  1496. </ul>
  1497. </td>
  1498. </tr>
  1499. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A sequence of length two the first element of which is a
  1500. face_interfaces.GenericStub (backed by the given method
  1501. implementations), and the second element of which is an arbitrary memo
  1502. object to be kept and passed to tearDownImplementation at the conclusion
  1503. of the test.</p>
  1504. </td>
  1505. </tr>
  1506. </tbody>
  1507. </table>
  1508. </dd></dl>
  1509. <dl class="method">
  1510. <dt id="grpc.framework.face.testing.test_case.FaceTestCase.tear_down_implementation">
  1511. <code class="descname">tear_down_implementation</code><span class="sig-paren">(</span><em>memo</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/face/testing/test_case.html#FaceTestCase.tear_down_implementation"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.face.testing.test_case.FaceTestCase.tear_down_implementation" title="Permalink to this definition">¶</a></dt>
  1512. <dd><p>Destroys the Face layer implementation under test.</p>
  1513. <table class="docutils field-list" frame="void" rules="none">
  1514. <col class="field-name" />
  1515. <col class="field-body" />
  1516. <tbody valign="top">
  1517. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>memo</strong> &#8211; The object from the second position of the return value of
  1518. set_up_implementation.</td>
  1519. </tr>
  1520. </tbody>
  1521. </table>
  1522. </dd></dl>
  1523. </dd></dl>
  1524. </div>
  1525. <div class="section" id="module-grpc.framework.face.testing">
  1526. <span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-grpc.framework.face.testing" title="Permalink to this headline">¶</a></h2>
  1527. </div>
  1528. </div>
  1529. </div>
  1530. <footer>
  1531. <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
  1532. <a href="grpc.framework.foundation.html" class="btn btn-neutral float-right" title="grpc.framework.foundation package" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
  1533. <a href="grpc.framework.face.html" class="btn btn-neutral" title="grpc.framework.face package" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
  1534. </div>
  1535. <hr/>
  1536. <div role="contentinfo">
  1537. <p>
  1538. &copy; Copyright 2015, Author.
  1539. </p>
  1540. </div>
  1541. Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
  1542. </footer>
  1543. </div>
  1544. </div>
  1545. </section>
  1546. </div>
  1547. <script type="text/javascript">
  1548. var DOCUMENTATION_OPTIONS = {
  1549. URL_ROOT:'./',
  1550. VERSION:'0.10.0a0',
  1551. COLLAPSE_INDEX:false,
  1552. FILE_SUFFIX:'.html',
  1553. HAS_SOURCE: true
  1554. };
  1555. </script>
  1556. <script type="text/javascript" src="_static/jquery.js"></script>
  1557. <script type="text/javascript" src="_static/underscore.js"></script>
  1558. <script type="text/javascript" src="_static/doctools.js"></script>
  1559. <script type="text/javascript" src="_static/js/theme.js"></script>
  1560. <script type="text/javascript">
  1561. jQuery(function () {
  1562. SphinxRtdTheme.StickyNav.enable();
  1563. });
  1564. </script>
  1565. </body>
  1566. </html>