aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_apis.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_apis.py b/tests/test_apis.py
index e99f606..a5e0d73 100644
--- a/tests/test_apis.py
+++ b/tests/test_apis.py
@@ -455,6 +455,11 @@ class TestConfigParsing(unittest.TestCase):
self.assertParses('yES', True)
self.assertParses('FALSE', False)
self.assertParses(0., False)
+ self.assertParses('none', False)
+
+ def testPreserveNone(self):
+ self.assertTrue(markdown.util.parseBoolValue('None', preserve_none=True) is None)
+ self.assertTrue(markdown.util.parseBoolValue(None, preserve_none=True) is None)
def testInvalidBooleansParsing(self):
self.assertRaises(ValueError, markdown.util.parseBoolValue, 'novalue')