MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / testStoreMore

Method testStoreMore

tests/test_apis.py:222–230  ·  view source on GitHub ↗

Test `HtmlStash.store` with additional blocks.

(self)

Source from the content-addressed store, hash-verified

220 self.assertEqual(self.stash.rawHtmlBlocks, ['foo'])
221
222 def testStoreMore(self):
223 """ Test `HtmlStash.store` with additional blocks. """
224 placeholder = self.stash.store('bar')
225 self.assertEqual(placeholder, self.stash.get_placeholder(1))
226 self.assertEqual(self.stash.html_counter, 2)
227 self.assertEqual(
228 self.stash.rawHtmlBlocks,
229 ['foo', 'bar']
230 )
231
232 def testReset(self):
233 """ Test `HtmlStash.reset`. """

Callers

nothing calls this directly

Calls 2

storeMethod · 0.80
get_placeholderMethod · 0.80

Tested by

no test coverage detected