Document: tests

bzr revid: p_christ@hol.gr-20100701175131-5acgsuetw1qx0juu
This commit is contained in:
P. Christeas 2010-07-01 20:51:31 +03:00
parent 6d64f88d55
commit 6aef03991d
1 changed files with 17 additions and 0 deletions

View File

@ -17,12 +17,29 @@
-
I create an attachment into the root folder (w. empty fields, test that
defaults work)
-
!record {model: ir.attachment, id: file_test1 }:
name: Test file
-
I delete the attachment from the root folder
-
!delete {model: ir.attachment, id: file_test1, search: }
-
I create an attachment into the Testing folder.
-
!record {model: ir.attachment, id: file_test2 }:
name: Test file 2
parent_id: dir_tests
-
I update the attachment with data, namely "abcd"
-
!record {model: ir.attachment, id: file_test2 }:
datas: abcd
-
I test that the datas of the attachment are correct
-
!assert {model: ir.attachment, id: file_test2 }:
- datas == 'abcd'
-
I rename the attachment.
-