diff options
author | Joshua Peek <josh@joshpeek.com> | 2011-06-08 09:45:01 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2011-06-08 09:45:01 -0500 |
commit | 649d4541963d03f9e2ab06c97a68b1e1ea562923 (patch) | |
tree | 2bfdc078ae531cace9c80a7824735680970aaa31 /tests/test_basic_api.py | |
parent | a4f99a0d461bd237292286440800dfeceae5ac6a (diff) | |
download | pygments-649d4541963d03f9e2ab06c97a68b1e1ea562923.tar.gz |
Test all lexers can be found by mime type
Diffstat (limited to 'tests/test_basic_api.py')
-rw-r--r-- | tests/test_basic_api.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py index 3639bdbc..0ae2d1b3 100644 --- a/tests/test_basic_api.py +++ b/tests/test_basic_api.py @@ -124,6 +124,9 @@ def test_get_lexers(): for alias in aliases: assert cls == lexers.get_lexer_by_name(alias).__class__.__name__ + for mimetype in mimetypes: + assert cls == lexers.get_lexer_for_mimetype(mimetype).__class__.__name__ + def test_formatter_public_api(): ts = list(lexers.PythonLexer().get_tokens("def f(): pass")) |