(self)
| 59 | self._deserialize, VersioningTestV1, b'{}') |
| 60 | |
| 61 | def testSimpleMessage(self): |
| 62 | v1obj = VersioningTestV1( |
| 63 | begin_in_both=12345, |
| 64 | old_string='aaa', |
| 65 | end_in_both=54321) |
| 66 | expected = dict(begin_in_both=v1obj.begin_in_both, |
| 67 | old_string=v1obj.old_string, |
| 68 | end_in_both=v1obj.end_in_both) |
| 69 | actual = json.loads(self._serialize(v1obj).decode('ascii')) |
| 70 | |
| 71 | self._assertDictEqual(expected, actual) |
| 72 | |
| 73 | def testComplicated(self): |
| 74 | v2obj = VersioningTestV2( |
nothing calls this directly
no test coverage detected