emacs-ipython-notebook/tests/legacy/test-ein-ac.el
John Miller fdf626cc98 Creating legacy tests
In theory these tests are for IPython 2.x. Still need to work out how to include all this in travis.
2015-08-26 20:50:28 -05:00

17 lines
586 B
EmacsLisp

(eval-when-compile (require 'cl))
(require 'ert)
(require 'ein-ac)
(require 'ein-testing-kernel)
(ert-deftest ein:ac-set-document ()
(let ((string "candidate string"))
(should-not (get-text-property 0 'document string))
(ein:testing-kernel-construct-help-string-loop
(lambda (content result)
(ein:ac-set-document string content '-not-used-)
(let ((props (text-properties-at 0 string)))
;; document property may be nil, but must be set.
(should (member 'document props))
(should (equal (plist-get props 'document) result)))))))