MCPcopy Index your code
hub / github.com/tensorflow/tensorboard / test_simple

Method test_simple

tensorboard/plugin_util_test.py:195–200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

193 # Most of the heavy lifting is tested by `MarkdownToSafeHTMLTest`.
194
195 def test_simple(self):
196 inputs = ["0", "*1*", "**2**"]
197 combine = lambda xs: "<br>".join(xs)
198 actual = plugin_util.markdowns_to_safe_html(inputs, combine)
199 expected = "<p>0</p><br><p><em>1</em></p><br><p><strong>2</strong></p>"
200 self.assertEqual(actual, expected)
201
202 def test_sanitizes_combination_result(self):
203 inputs = ["safe"]

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected