_intraop_test_case.py
Go to the documentation of this file.
1 # Copyright 2015 gRPC authors.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 """Common code for unit tests of the interoperability test code."""
15 
16 from tests.interop import methods
17 
18 
19 class IntraopTestCase(object):
20  """Unit test methods.
21 
22  This class must be mixed in with unittest.TestCase and a class that defines
23  setUp and tearDown methods that manage a stub attribute.
24  """
25 
26  def testEmptyUnary(self):
27  methods.TestCase.EMPTY_UNARY.test_interoperability(self.stub, None)
28 
29  def testLargeUnary(self):
30  methods.TestCase.LARGE_UNARY.test_interoperability(self.stub, None)
31 
33  methods.TestCase.SERVER_STREAMING.test_interoperability(self.stub, None)
34 
36  methods.TestCase.CLIENT_STREAMING.test_interoperability(self.stub, None)
37 
38  def testPingPong(self):
39  methods.TestCase.PING_PONG.test_interoperability(self.stub, None)
40 
42  methods.TestCase.CANCEL_AFTER_BEGIN.test_interoperability(
43  self.stub, None)
44 
46  methods.TestCase.CANCEL_AFTER_FIRST_RESPONSE.test_interoperability(
47  self.stub, None)
48 
50  methods.TestCase.TIMEOUT_ON_SLEEPING_SERVER.test_interoperability(
51  self.stub, None)
tests.interop._intraop_test_case.IntraopTestCase.testServerStreaming
def testServerStreaming(self)
Definition: _intraop_test_case.py:32
tests.interop._intraop_test_case.IntraopTestCase.testCancelAfterFirstResponse
def testCancelAfterFirstResponse(self)
Definition: _intraop_test_case.py:45
tests.interop._intraop_test_case.IntraopTestCase.testPingPong
def testPingPong(self)
Definition: _intraop_test_case.py:38
tests.interop._intraop_test_case.IntraopTestCase.testTimeoutOnSleepingServer
def testTimeoutOnSleepingServer(self)
Definition: _intraop_test_case.py:49
tests.interop._intraop_test_case.IntraopTestCase.testLargeUnary
def testLargeUnary(self)
Definition: _intraop_test_case.py:29
tests.interop
Definition: src/python/grpcio_tests/tests/interop/__init__.py:1
tests.interop._intraop_test_case.IntraopTestCase.testEmptyUnary
def testEmptyUnary(self)
Definition: _intraop_test_case.py:26
tests.interop._intraop_test_case.IntraopTestCase
Definition: _intraop_test_case.py:19
tests.interop._intraop_test_case.IntraopTestCase.testClientStreaming
def testClientStreaming(self)
Definition: _intraop_test_case.py:35
tests.interop._intraop_test_case.IntraopTestCase.testCancelAfterBegin
def testCancelAfterBegin(self)
Definition: _intraop_test_case.py:41


grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:38