Fixed bug reported by Heinz Diehl: don't try to autodecrypt message in draft
[more-wl.git] / tests / test-elmo-localdir.el
blobb3eb877ad75096d6e3973ba501fd2c0add569bdf
1 (require 'lunit)
2 (require 'elmo-localdir)
4 (luna-define-class test-elmo-localdir (lunit-test-case))
6 (luna-define-method test-elmo-folder-expand-msgdb-path-1 ((case test-elmo-localdir))
7 (lunit-assert
8 (string=
9 (elmo-folder-expand-msgdb-path
10 (wl-folder-get-elmo-folder
11 (concat "+" (expand-file-name "~/Mail/inbox"))))
12 (elmo-folder-expand-msgdb-path
13 (wl-folder-get-elmo-folder "+~/Mail/inbox")))))
15 (luna-define-method test-elmo-folder-expand-msgdb-path-2 ((case test-elmo-localdir))
16 (lunit-assert
17 (string=
18 (expand-file-name "localdir/inbox" elmo-msgdb-directory)
19 (elmo-folder-expand-msgdb-path (wl-folder-get-elmo-folder "+inbox")))))
22 (luna-define-method test-elmo-folder-expand-msgdb-path-3 ((case test-elmo-localdir))
23 (lunit-assert
24 (not
25 (string=
26 (elmo-folder-expand-msgdb-path (wl-folder-get-elmo-folder "+/inbox"))
27 (elmo-folder-expand-msgdb-path (wl-folder-get-elmo-folder "+inbox"))))))