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

Method testBooleansParsing

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

Source from the content-addressed store, hash-verified

737 self.assertIs(markdown.util.parseBoolValue(value, False), result)
738
739 def testBooleansParsing(self):
740 self.assertParses(True, True)
741 self.assertParses('novalue', None)
742 self.assertParses('yES', True)
743 self.assertParses('FALSE', False)
744 self.assertParses(0., False)
745 self.assertParses('none', False)
746
747 def testPreserveNone(self):
748 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