diff options
| author | Xue Fuqiao | 2013-12-26 06:27:00 +0800 |
|---|---|---|
| committer | Xue Fuqiao | 2013-12-26 06:27:00 +0800 |
| commit | 77bbf3713d459c45492e6daed68437edcf863a0c (patch) | |
| tree | 0e2ea82f80e907cea52eb683a362504a3813a463 /test/automated/python-tests.el | |
| parent | 3bc1e1880f232ccaea7c35a0c51bac61df9ac23c (diff) | |
| parent | 83fa295c1236aba5a73d565082dcb58a32f3e446 (diff) | |
| download | emacs-77bbf3713d459c45492e6daed68437edcf863a0c.tar.gz emacs-77bbf3713d459c45492e6daed68437edcf863a0c.zip | |
Merge from mainline.
Diffstat (limited to 'test/automated/python-tests.el')
| -rw-r--r-- | test/automated/python-tests.el | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/test/automated/python-tests.el b/test/automated/python-tests.el index 5756507fc92..03667a74666 100644 --- a/test/automated/python-tests.el +++ b/test/automated/python-tests.el | |||
| @@ -1339,28 +1339,6 @@ if request.user.is_authenticated(): | |||
| 1339 | (python-tests-look-at | 1339 | (python-tests-look-at |
| 1340 | "if request.user.is_authenticated():" -1))))) | 1340 | "if request.user.is_authenticated():" -1))))) |
| 1341 | 1341 | ||
| 1342 | (ert-deftest python-nav-lisp-forward-sexp-safe-1 () | ||
| 1343 | (python-tests-with-temp-buffer | ||
| 1344 | " | ||
| 1345 | profile = Profile.objects.create(user=request.user) | ||
| 1346 | profile.notify() | ||
| 1347 | " | ||
| 1348 | (python-tests-look-at "profile =") | ||
| 1349 | (python-nav-lisp-forward-sexp-safe 4) | ||
| 1350 | (should (looking-at "(user=request.user)")) | ||
| 1351 | (python-tests-look-at "user=request.user") | ||
| 1352 | (python-nav-lisp-forward-sexp-safe -1) | ||
| 1353 | (should (looking-at "(user=request.user)")) | ||
| 1354 | (python-nav-lisp-forward-sexp-safe -4) | ||
| 1355 | (should (looking-at "profile =")) | ||
| 1356 | (python-tests-look-at "user=request.user") | ||
| 1357 | (python-nav-lisp-forward-sexp-safe 3) | ||
| 1358 | (should (looking-at ")")) | ||
| 1359 | (python-nav-lisp-forward-sexp-safe 1) | ||
| 1360 | (should (looking-at "$")) | ||
| 1361 | (python-nav-lisp-forward-sexp-safe 1) | ||
| 1362 | (should (looking-at ".notify()")))) | ||
| 1363 | |||
| 1364 | (ert-deftest python-nav-forward-sexp-1 () | 1342 | (ert-deftest python-nav-forward-sexp-1 () |
| 1365 | (python-tests-with-temp-buffer | 1343 | (python-tests-with-temp-buffer |
| 1366 | " | 1344 | " |
| @@ -1477,6 +1455,29 @@ def another_statement(): | |||
| 1477 | (python-nav-forward-sexp -1) | 1455 | (python-nav-forward-sexp -1) |
| 1478 | (should (looking-at "from some_module import some_sub_module")))) | 1456 | (should (looking-at "from some_module import some_sub_module")))) |
| 1479 | 1457 | ||
| 1458 | (ert-deftest python-nav-forward-sexp-safe-1 () | ||
| 1459 | (python-tests-with-temp-buffer | ||
| 1460 | " | ||
| 1461 | profile = Profile.objects.create(user=request.user) | ||
| 1462 | profile.notify() | ||
| 1463 | " | ||
| 1464 | (python-tests-look-at "profile =") | ||
| 1465 | (python-nav-forward-sexp-safe 1) | ||
| 1466 | (should (looking-at "$")) | ||
| 1467 | (beginning-of-line 1) | ||
| 1468 | (python-tests-look-at "user=request.user") | ||
| 1469 | (python-nav-forward-sexp-safe -1) | ||
| 1470 | (should (looking-at "(user=request.user)")) | ||
| 1471 | (python-nav-forward-sexp-safe -4) | ||
| 1472 | (should (looking-at "profile =")) | ||
| 1473 | (python-tests-look-at "user=request.user") | ||
| 1474 | (python-nav-forward-sexp-safe 3) | ||
| 1475 | (should (looking-at ")")) | ||
| 1476 | (python-nav-forward-sexp-safe 1) | ||
| 1477 | (should (looking-at "$")) | ||
| 1478 | (python-nav-forward-sexp-safe 1) | ||
| 1479 | (should (looking-at "$")))) | ||
| 1480 | |||
| 1480 | (ert-deftest python-nav-up-list-1 () | 1481 | (ert-deftest python-nav-up-list-1 () |
| 1481 | (python-tests-with-temp-buffer | 1482 | (python-tests-with-temp-buffer |
| 1482 | " | 1483 | " |