(self, a, b, msg=None)
| 31 | protocol_factory = TJSONProtocol.TSimpleJSONProtocolFactory() |
| 32 | |
| 33 | def _assertDictEqual(self, a, b, msg=None): |
| 34 | if hasattr(self, 'assertDictEqual'): |
| 35 | # assertDictEqual only in Python 2.7. Depends on your machine. |
| 36 | self.assertDictEqual(a, b, msg) |
| 37 | return |
| 38 | |
| 39 | # Substitute implementation not as good as unittest library's |
| 40 | self.assertEquals(len(a), len(b), msg) |
| 41 | for k, v in a.iteritems(): |
| 42 | self.assertTrue(k in b, msg) |
| 43 | self.assertEquals(b.get(k), v, msg) |
| 44 | |
| 45 | def _serialize(self, obj): |
| 46 | trans = TTransport.TMemoryBuffer() |
no test coverage detected