aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/progmodes/python-tests.el
diff options
context:
space:
mode:
authorTassilo Horn2019-09-22 11:02:39 +0200
committerTassilo Horn2019-09-22 11:02:39 +0200
commitaf0642a4cb220f33a43d1380be085bc0b7134bb8 (patch)
treee3b1b57bc42e712c77bd55fc4fc722cf93fe6c66 /test/lisp/progmodes/python-tests.el
parent8992bc7d1b7e7babbf2899b5c45e84b486f504e6 (diff)
parent37a4233a366797360c2f4f475591a3406586bcfb (diff)
downloademacs-scratch/tsdh-vc-list-files.tar.gz
emacs-scratch/tsdh-vc-list-files.zip
Merge remote-tracking branch 'origin/master' into scratch/tsdh-vc-list-filesscratch/tsdh-vc-list-files
Diffstat (limited to 'test/lisp/progmodes/python-tests.el')
-rw-r--r--test/lisp/progmodes/python-tests.el13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el
index b1cf7e8806a..c5ad1dfb862 100644
--- a/test/lisp/progmodes/python-tests.el
+++ b/test/lisp/progmodes/python-tests.el
@@ -1351,7 +1351,7 @@ this is an arbitrarily
1351 expected))))) 1351 expected)))))
1352 1352
1353 1353
1354;;; Autofill 1354;;; Filling
1355 1355
1356(ert-deftest python-auto-fill-docstring () 1356(ert-deftest python-auto-fill-docstring ()
1357 (python-tests-with-temp-buffer 1357 (python-tests-with-temp-buffer
@@ -1368,6 +1368,17 @@ def some_function(arg1,
1368 (forward-line 1) 1368 (forward-line 1)
1369 (should (= docindent (current-indentation)))))) 1369 (should (= docindent (current-indentation))))))
1370 1370
1371(ert-deftest python-fill-docstring ()
1372 (python-tests-with-temp-buffer
1373 "\
1374r'''aaa
1375
1376this is a test this is a test this is a test this is a test this is a test this is a test.
1377'''"
1378 (search-forward "test.")
1379 (fill-paragraph)
1380 (should (= (current-indentation) 0))))
1381
1371 1382
1372;;; Mark 1383;;; Mark
1373 1384