diff options
Diffstat (limited to 'test/lisp/progmodes/python-tests.el')
| -rw-r--r-- | test/lisp/progmodes/python-tests.el | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el index a5179097172..87cee189eac 100644 --- a/test/lisp/progmodes/python-tests.el +++ b/test/lisp/progmodes/python-tests.el | |||
| @@ -1341,6 +1341,24 @@ this is an arbitrarily | |||
| 1341 | expected))))) | 1341 | expected))))) |
| 1342 | 1342 | ||
| 1343 | 1343 | ||
| 1344 | ;;; Autofill | ||
| 1345 | |||
| 1346 | (ert-deftest python-auto-fill-docstring () | ||
| 1347 | (python-tests-with-temp-buffer | ||
| 1348 | "\ | ||
| 1349 | def some_function(arg1, | ||
| 1350 | arg2): | ||
| 1351 | \"\"\" | ||
| 1352 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." | ||
| 1353 | (auto-fill-mode +1) | ||
| 1354 | (goto-char (point-max)) | ||
| 1355 | (newline) | ||
| 1356 | (search-backward "Lorem") | ||
| 1357 | (let ((docindent (current-indentation))) | ||
| 1358 | (forward-line 1) | ||
| 1359 | (should (= docindent (current-indentation)))))) | ||
| 1360 | |||
| 1361 | |||
| 1344 | ;;; Mark | 1362 | ;;; Mark |
| 1345 | 1363 | ||
| 1346 | (ert-deftest python-mark-defun-1 () | 1364 | (ert-deftest python-mark-defun-1 () |