diff options
Diffstat (limited to 'test/lisp/progmodes/python-tests.el')
| -rw-r--r-- | test/lisp/progmodes/python-tests.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el index a3f778bbbe9..479d68a0623 100644 --- a/test/lisp/progmodes/python-tests.el +++ b/test/lisp/progmodes/python-tests.el | |||
| @@ -214,6 +214,18 @@ aliqua." | |||
| 214 | (should (string= (buffer-string) "\"\"")) | 214 | (should (string= (buffer-string) "\"\"")) |
| 215 | (should (null (nth 3 (syntax-ppss)))))) | 215 | (should (null (nth 3 (syntax-ppss)))))) |
| 216 | 216 | ||
| 217 | (ert-deftest python-font-lock-keywords-level-1-1 () | ||
| 218 | (python-tests-assert-faces | ||
| 219 | "def func():" | ||
| 220 | '((1 . font-lock-keyword-face) (4) | ||
| 221 | (5 . font-lock-function-name-face) (9)))) | ||
| 222 | |||
| 223 | (ert-deftest python-font-lock-keywords-level-1-2 () | ||
| 224 | "Invalid function name should not be font-locked." | ||
| 225 | (python-tests-assert-faces | ||
| 226 | "def 1func():" | ||
| 227 | '((1 . font-lock-keyword-face) (4)))) | ||
| 228 | |||
| 217 | (ert-deftest python-font-lock-assignment-statement-1 () | 229 | (ert-deftest python-font-lock-assignment-statement-1 () |
| 218 | (python-tests-assert-faces | 230 | (python-tests-assert-faces |
| 219 | "a, b, c = 1, 2, 3" | 231 | "a, b, c = 1, 2, 3" |