summaryrefslogtreecommitdiff
path: root/tests/test_basic_api.py
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2006-10-31 20:30:18 +0100
committergbrandl <devnull@localhost>2006-10-31 20:30:18 +0100
commitdf7c757b5598695b7068e5d5b957c6d4b77eed33 (patch)
tree29ba8ca2b4b29a14627a91a2f2f95f8e78a983e5 /tests/test_basic_api.py
parentfa75d4b2f0aa6c1a0b5e902613be9804204eed85 (diff)
downloadpygments-df7c757b5598695b7068e5d5b957c6d4b77eed33.tar.gz
[svn] Begin a test case for the cmdline interface.
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