MCPcopy
hub / github.com/Python-Markdown/markdown / testReset

Method testReset

tests/test_apis.py:174–182  ·  view source on GitHub ↗

Test `State.reset()`.

(self)

Source from the content-addressed store, hash-verified

172 self.assertEqual(self.state.isstate('missing'), False)
173
174 def testReset(self):
175 """ Test `State.reset()`. """
176 self.state.set('a_state')
177 self.state.reset()
178 self.assertEqual(self.state, [])
179 self.state.set('state1')
180 self.state.set('state2')
181 self.state.reset()
182 self.assertEqual(self.state, ['state1'])
183
184
185class TestHtmlStash(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

setMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected