diff options
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")) |