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

Method testBooleansParsing

tests/test_apis.py:774–780  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

772 self.assertIs(markdown.util.parseBoolValue(value, False), result)
773
774 def testBooleansParsing(self):
775 self.assertParses(True, True)
776 self.assertParses('novalue', None)
777 self.assertParses('yES', True)
778 self.assertParses('FALSE', False)
779 self.assertParses(0., False)
780 self.assertParses('none', False)
781
782 def testPreserveNone(self):
783 self.assertIsNone(markdown.util.parseBoolValue('None', preserve_none=True))

Callers

nothing calls this directly

Calls 1

assertParsesMethod · 0.95

Tested by

no test coverage detected