diff options
Diffstat (limited to 'tests/test_python.py')
-rw-r--r-- | tests/test_python.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_python.py b/tests/test_python.py index 766e5c55..fc48624e 100644 --- a/tests/test_python.py +++ b/tests/test_python.py @@ -17,7 +17,11 @@ class PythonTest(unittest.TestCase): def setUp(self): self.lexer = PythonLexer() - def testNeedsName(self): + def test_cls_builtin(self): + """ + Tests that a cls token gets interpreted as a Token.Name.Builtin.Pseudo + + """ fragment = 'class TestClass():\n @classmethod\n def hello(cls):\n pass\n' tokens = [ (Token.Keyword, 'class'), |