summaryrefslogtreecommitdiff
path: root/tests/test_basic_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_basic_api.py')
-rw-r--r--tests/test_basic_api.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py
index c929fde8..e5ba623d 100644
--- a/tests/test_basic_api.py
+++ b/tests/test_basic_api.py
@@ -20,6 +20,11 @@ test_content = ''.join(test_content) + '\n'
class LexersTest(unittest.TestCase):
+ def test_import_all(self):
+ # instantiate every lexer, to see if the token type defs are correct
+ for x in pygments.lexers.LEXERS.keys():
+ c = getattr(pygments.lexers, x)()
+
def test_lexer_classes(self):
a = self.assert_
ae = self.assertEquals