diff options
| author | Antony Lesuisse <al@openerp.com> | 2014-03-26 14:04:17 +0100 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2014-03-26 14:04:17 +0100 |
| commit | e58f289aebff7dabd37b72f8b4d334a89e4e9fd5 (patch) | |
| tree | bf9a6c6533642d37f2e7ccab39f56054e2a18261 /addons/document_ftp/test/document_ftp_test3.yml | |
| parent | 502d6770152e13c7560ea3adb25dddd4265dc016 (diff) | |
[REM] move document_ftp to openerp-extra
bzr revid: al@openerp.com-20140326130417-8226lcfoojop1j5e
Diffstat (limited to 'addons/document_ftp/test/document_ftp_test3.yml')
| -rw-r--r-- | addons/document_ftp/test/document_ftp_test3.yml | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/addons/document_ftp/test/document_ftp_test3.yml b/addons/document_ftp/test/document_ftp_test3.yml deleted file mode 100644 index a51f259f44e..00000000000 --- a/addons/document_ftp/test/document_ftp_test3.yml +++ /dev/null @@ -1,92 +0,0 @@ -- - In order to check international character functionality -- - !python {model: ir.attachment}: | - from document_ftp import test_easyftp as te - ftp = te.get_plain_ftp(timeout=1.0) -- - I create in the server a folder called 'Δοκιμαστικός Φάκελλος' -- - !record {model: document.directory, id: dir_itests }: - name: 'Δοκιμαστικός Φάκελλος' - parent_id: document.dir_root -- - And then I create another folder, under it, through FTP -- - !python {model: ir.attachment}: | - cr.commit() - from document_ftp import test_easyftp as te - ftp = te.get_ftp_folder(cr, uid, self, 'Documents/Δοκιμαστικός Φάκελλος') - ftp.mkd("Φάκελλος από κάτω") -- - I check that this folder exists at the server -- - !assert {model: document.directory, id: , search: "[('name','=','Φάκελλος από κάτω')]" }: - - parent_id != False -- - I login with FTP and check that 'Δοκιμαστικός Φάκελλος' is there -- - !python {model: ir.attachment}: | - from document_ftp import test_easyftp as te - ftp = te.get_ftp_folder(cr, uid, self, 'Documents/Δοκιμαστικός Φάκελλος/Φάκελλος από κάτω') -- - I create a file named 'Δοκιμή' into that folder -- - !python {model: ir.attachment}: | - from document_ftp import test_easyftp as te - from cStringIO import StringIO - ftp = te.get_ftp_folder(cr, uid, self, 'Documents/Δοκιμαστικός Φάκελλος/Φάκελλος από κάτω') - fdata = StringIO('κείμενο με utf-8') - ftp.storbinary('STOR Δοκιμή.txt', fdata) -- - I remove the 'Δοκιμή.txt' file -- - !python {model: ir.attachment}: | - from document_ftp import test_easyftp as te - from cStringIO import StringIO - ftp = te.get_ftp_folder(cr, uid, self, 'Documents/Δοκιμαστικός Φάκελλος/Φάκελλος από κάτω') - ftp.delete('Δοκιμή.txt') -- - I rename 'Φάκελλος από κάτω' into 'άλλος' -- - !python {model: ir.attachment}: | - from document_ftp import test_easyftp as te - ftp = te.get_ftp_folder(cr, uid, self, 'Documents/Δοκιμαστικός Φάκελλος') - ftp.rename("Φάκελλος από κάτω", "άλλος") -- - I place a file 'file Φ3' in 'άλλος' -- - !python {model: ir.attachment}: | - from document_ftp import test_easyftp as te - from cStringIO import StringIO - ftp = te.get_ftp_folder(cr, uid, self, 'Documents/Δοκιμαστικός Φάκελλος/άλλος') - fdata = StringIO('κι άλλο κείμενο') - ftp.storbinary('STOR file Φ3.txt', fdata) -- - I rename the file into file+range(1..200) (large filename) -- - !python {model: ir.attachment}: | - from document_ftp import test_easyftp as te - from cStringIO import StringIO - ftp = te.get_ftp_folder(cr, uid, self, 'Documents/Δοκιμαστικός Φάκελλος/άλλος') - vuvuzela = 'b'+''.join('z' * 200)+'!' - ftp.rename("file Φ3.txt", vuvuzela) -- - I delete the file with the large name -- - !python {model: ir.attachment}: | - from document_ftp import test_easyftp as te - from cStringIO import StringIO - ftp = te.get_ftp_folder(cr, uid, self, 'Documents/Δοκιμαστικός Φάκελλος/άλλος') - vuvuzela = 'b'+''.join('z' * 200)+'!' - ftp.delete(vuvuzela) - -- - I delete the testing folders -- - !python {model: ir.attachment}: | - from document_ftp import test_easyftp as te - from cStringIO import StringIO - ftp = te.get_ftp_folder(cr, uid, self, 'Documents') - ftp.rmd('Δοκιμαστικός Φάκελλος/άλλος') - ftp.rmd('Δοκιμαστικός Φάκελλος') |
