Asserts that |to_wrap| becomes |expected| when wrapped.
(self, to_wrap, expected)
| 25 | |
| 26 | class CleanseTest(tb_test.TestCase): |
| 27 | def _assertWrapsAs(self, to_wrap, expected): |
| 28 | """Asserts that |to_wrap| becomes |expected| when wrapped.""" |
| 29 | actual = json_util.Cleanse(to_wrap) |
| 30 | for a, e in zip(actual, expected): |
| 31 | self.assertEqual(e, a) |
| 32 | |
| 33 | def testWrapsPrimitives(self): |
| 34 | self._assertWrapsAs(_INFINITY, "Infinity") |
no outgoing calls
no test coverage detected