MCPcopy Index your code
hub / github.com/Python-Markdown/markdown / testStoreMore

Method testStoreMore

tests/test_apis.py:198–206  ·  view source on GitHub ↗

Test `HtmlStash.store` with additional blocks.

(self)

Source from the content-addressed store, hash-verified

196 self.assertEqual(self.stash.rawHtmlBlocks, ['foo'])
197
198 def testStoreMore(self):
199 """ Test `HtmlStash.store` with additional blocks. """
200 placeholder = self.stash.store('bar')
201 self.assertEqual(placeholder, self.stash.get_placeholder(1))
202 self.assertEqual(self.stash.html_counter, 2)
203 self.assertEqual(
204 self.stash.rawHtmlBlocks,
205 ['foo', 'bar']
206 )
207
208 def testReset(self):
209 """ Test `HtmlStash.reset`. """

Callers

nothing calls this directly

Calls 2

storeMethod · 0.80
get_placeholderMethod · 0.80

Tested by

no test coverage detected