summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJessie Wincek <jbwincek@gmail.com>2016-06-02 12:16:52 -0700
committerJessie Wincek <jbwincek@gmail.com>2016-06-02 12:16:52 -0700
commit1b6f130a6d883906da54d4a7cdf80dfc00c1574a (patch)
tree3afaf7d0d0314ea47b222df977a9091b21100c47
parent41ad8a96b9a839489fc63014b78a99207c378b92 (diff)
downloadpygments-1b6f130a6d883906da54d4a7cdf80dfc00c1574a.tar.gz
Replaced test method placeholder name and added docstring
-rw-r--r--tests/test_python.py6
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'),