Document: start some trivial tests.

bzr revid: p_christ@hol.gr-20100701175130-bs2rx4w81ck6gh9l
This commit is contained in:
P. Christeas 2010-07-01 20:51:30 +03:00
parent 3f4d6dd95d
commit ad1253c96b
1 changed files with 10 additions and 0 deletions

View File

@ -2,8 +2,18 @@
In order to test the document management
-
I make sure the default installation has some storage and root directory.
-
!assert {model: document.storage, id: storage_default }:
- id != False
-
!assert {model: document.directory, id: dir_root}:
- storage_id != False
-
I create a "Testing" folder where all the test data will go.
-
!record {model: document.directory, id: dir_tests }:
name: 'Testing'
parent_id: dir_root
-
I create an attachment into the root folder (w. empty fields, test that
defaults work)