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

Method testSimpleStore

tests/test_apis.py:216–220  ·  view source on GitHub ↗

Test `HtmlStash.store`.

(self)

Source from the content-addressed store, hash-verified

214 self.placeholder = self.stash.store('foo')
215
216 def testSimpleStore(self):
217 """ Test `HtmlStash.store`. """
218 self.assertEqual(self.placeholder, self.stash.get_placeholder(0))
219 self.assertEqual(self.stash.html_counter, 1)
220 self.assertEqual(self.stash.rawHtmlBlocks, ['foo'])
221
222 def testStoreMore(self):
223 """ Test `HtmlStash.store` with additional blocks. """

Callers

nothing calls this directly

Calls 1

get_placeholderMethod · 0.80

Tested by

no test coverage detected