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

Method testSimpleStore

tests/test_apis.py:192–196  ·  view source on GitHub ↗

Test `HtmlStash.store`.

(self)

Source from the content-addressed store, hash-verified

190 self.placeholder = self.stash.store('foo')
191
192 def testSimpleStore(self):
193 """ Test `HtmlStash.store`. """
194 self.assertEqual(self.placeholder, self.stash.get_placeholder(0))
195 self.assertEqual(self.stash.html_counter, 1)
196 self.assertEqual(self.stash.rawHtmlBlocks, ['foo'])
197
198 def testStoreMore(self):
199 """ Test `HtmlStash.store` with additional blocks. """

Callers

nothing calls this directly

Calls 1

get_placeholderMethod · 0.80

Tested by

no test coverage detected