diff options
author | Waylan Limberg <waylan@gmail.com> | 2011-04-29 00:59:06 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2011-04-29 00:59:06 -0400 |
commit | efa244322af59350056ffe3b93f7d4728d5ce61e (patch) | |
tree | f21ef20608b38d35f05e4e65504cd9406e2c6e68 /tests/util.py | |
parent | ad83ad5c426b508ba0ace30ea83b3e60ec23b8ef (diff) | |
download | markdown-efa244322af59350056ffe3b93f7d4728d5ce61e.tar.gz markdown-efa244322af59350056ffe3b93f7d4728d5ce61e.tar.bz2 markdown-efa244322af59350056ffe3b93f7d4728d5ce61e.zip |
The Testing Framework will now pass any non-reserved args set in test.cfg files as keyword arguments to Markdown for a given syntax test. As Markdown ignores unknown args, this should be safe and will allow testing of any newly added keywords without additional modification of the testing framework.
Diffstat (limited to 'tests/util.py')
-rw-r--r-- | tests/util.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/util.py b/tests/util.py index aae87be..a960104 100644 --- a/tests/util.py +++ b/tests/util.py @@ -12,4 +12,8 @@ class CustomConfigParser(SafeConfigParser): return value.split(',') else: return [] + if value.lower() in ['yes', 'true', 'on']: + return True + if value.lower() in ['no', 'false', 'off']: + return False return value |