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

Method testBooleansParsing

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

Source from the content-addressed store, hash-verified

796 self.assertIs(markdown.util.parseBoolValue(value, False), result)
797
798 def testBooleansParsing(self):
799 self.assertParses(True, True)
800 self.assertParses('novalue', None)
801 self.assertParses('yES', True)
802 self.assertParses('FALSE', False)
803 self.assertParses(0., False)
804 self.assertParses('none', False)
805
806 def testPreserveNone(self):
807 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