MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / MockProtocolBuffer

Class MockProtocolBuffer

tests/test_protobuf_model.py:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31
32class MockProtocolBuffer(object):
33 def __init__(self, data=None):
34 self.data = data
35
36 def __eq__(self, other):
37 return self.data == other.data
38
39 @classmethod
40 def FromString(cls, string):
41 return cls(string)
42
43 def SerializeToString(self):
44 return self.data
45
46
47class Model(unittest.TestCase):

Callers 3

test_bodyMethod · 0.85
test_good_responseMethod · 0.85

Calls

no outgoing calls

Tested by 3

test_bodyMethod · 0.68
test_good_responseMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…