MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / _assertWrapsAs

Method _assertWrapsAs

tensorboard/backend/json_util_test.py:27–31  ·  view source on GitHub ↗

Asserts that |to_wrap| becomes |expected| when wrapped.

(self, to_wrap, expected)

Source from the content-addressed store, hash-verified

25
26class 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")

Callers 5

testWrapsPrimitivesMethod · 0.95
testWrapsObjectValuesMethod · 0.95
testWrapsObjectKeysMethod · 0.95
testWrapsRecursivelyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected