diff options
author | Georg Brandl <georg@python.org> | 2014-01-09 20:24:06 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-01-09 20:24:06 +0100 |
commit | d2f5bd0e335d7ab8d6bee65cab8869a83624e2e3 (patch) | |
tree | e3313505695fa1688c74be7d5cdbef1fa3b7ae83 /tests/test_basic_api.py | |
parent | 57f143d68c9c40a11368753b57fab6e4c5921d5c (diff) | |
download | pygments-d2f5bd0e335d7ab8d6bee65cab8869a83624e2e3.tar.gz |
tests: make sure lexer aliases are registered lowercase
Diffstat (limited to 'tests/test_basic_api.py')
-rw-r--r-- | tests/test_basic_api.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py index 19e1988b..d1422a5c 100644 --- a/tests/test_basic_api.py +++ b/tests/test_basic_api.py @@ -45,6 +45,8 @@ def test_lexer_classes(): result = cls.analyse_text(".abc") assert isinstance(result, float) and 0.0 <= result <= 1.0 + assert all(al.lower() == al for al in cls.aliases) + inst = cls(opt1="val1", opt2="val2") if issubclass(cls, RegexLexer): if not hasattr(cls, '_tokens'): |