| 30 | |
| 31 | |
| 32 | class 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 | |
| 47 | class Model(unittest.TestCase): |
no outgoing calls
searching dependent graphs…