|
|
|
@ -145,7 +145,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testSuccessfulUnaryRequestUnaryResponse(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.unary_unary_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.unary_unary_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
request = test_messages.request() |
|
|
|
|
callback = _Callback() |
|
|
|
@ -160,7 +160,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testSuccessfulUnaryRequestStreamResponse(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.unary_stream_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.unary_stream_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
request = test_messages.request() |
|
|
|
|
|
|
|
|
@ -172,7 +172,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testSuccessfulStreamRequestUnaryResponse(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.stream_unary_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.stream_unary_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
requests = test_messages.requests() |
|
|
|
|
request_iterator = _PauseableIterator(iter(requests)) |
|
|
|
@ -192,7 +192,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testSuccessfulStreamRequestStreamResponse(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.stream_stream_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.stream_stream_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
requests = test_messages.requests() |
|
|
|
|
request_iterator = _PauseableIterator(iter(requests)) |
|
|
|
@ -208,7 +208,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testSequentialInvocations(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.unary_unary_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.unary_unary_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
first_request = test_messages.request() |
|
|
|
|
second_request = test_messages.request() |
|
|
|
@ -227,7 +227,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testParallelInvocations(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.unary_unary_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.unary_unary_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
first_request = test_messages.request() |
|
|
|
|
second_request = test_messages.request() |
|
|
|
@ -243,7 +243,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
test_messages.verify(second_request, second_response, self) |
|
|
|
|
|
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.unary_unary_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.unary_unary_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
requests = [] |
|
|
|
|
response_futures = [] |
|
|
|
@ -263,7 +263,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
def testWaitingForSomeButNotAllParallelInvocations(self): |
|
|
|
|
pool = logging_pool.pool(test_constants.PARALLELISM) |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.unary_unary_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.unary_unary_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
requests = [] |
|
|
|
|
response_futures_to_indices = {} |
|
|
|
@ -285,7 +285,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testCancelledUnaryRequestUnaryResponse(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.unary_unary_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.unary_unary_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
request = test_messages.request() |
|
|
|
|
callback = _Callback() |
|
|
|
@ -302,7 +302,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testCancelledUnaryRequestStreamResponse(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.unary_stream_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.unary_stream_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
request = test_messages.request() |
|
|
|
|
|
|
|
|
@ -316,7 +316,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testCancelledStreamRequestUnaryResponse(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.stream_unary_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.stream_unary_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
requests = test_messages.requests() |
|
|
|
|
callback = _Callback() |
|
|
|
@ -333,7 +333,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testCancelledStreamRequestStreamResponse(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.stream_stream_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.stream_stream_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
requests = test_messages.requests() |
|
|
|
|
|
|
|
|
@ -347,7 +347,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testExpiredUnaryRequestUnaryResponse(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.unary_unary_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.unary_unary_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
request = test_messages.request() |
|
|
|
|
callback = _Callback() |
|
|
|
@ -364,7 +364,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testExpiredUnaryRequestStreamResponse(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.unary_stream_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.unary_stream_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
request = test_messages.request() |
|
|
|
|
|
|
|
|
@ -376,7 +376,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testExpiredStreamRequestUnaryResponse(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.stream_unary_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.stream_unary_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
requests = test_messages.requests() |
|
|
|
|
callback = _Callback() |
|
|
|
@ -393,7 +393,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testExpiredStreamRequestStreamResponse(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.stream_stream_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.stream_stream_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
requests = test_messages.requests() |
|
|
|
|
|
|
|
|
@ -405,7 +405,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testFailedUnaryRequestUnaryResponse(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.unary_unary_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.unary_unary_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
request = test_messages.request() |
|
|
|
|
callback = _Callback() |
|
|
|
@ -427,7 +427,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testFailedUnaryRequestStreamResponse(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.unary_stream_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.unary_stream_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
request = test_messages.request() |
|
|
|
|
|
|
|
|
@ -442,7 +442,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testFailedStreamRequestUnaryResponse(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.stream_unary_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.stream_unary_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
requests = test_messages.requests() |
|
|
|
|
callback = _Callback() |
|
|
|
@ -464,7 +464,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. |
|
|
|
|
|
|
|
|
|
def testFailedStreamRequestStreamResponse(self): |
|
|
|
|
for (group, method), test_messages_sequence in ( |
|
|
|
|
self._digest.stream_stream_messages_sequences.iteritems()): |
|
|
|
|
six.iteritems(self._digest.stream_stream_messages_sequences)): |
|
|
|
|
for test_messages in test_messages_sequence: |
|
|
|
|
requests = test_messages.requests() |
|
|
|
|
|
|
|
|
|