2 In order to test the document_ftp functionality
4 I open the HTTP port and perform an OPTIONS request to the server
6 !python {model: ir.attachment}: |
7 from document_webdav import test_davclient as te
11 dc.get_creds(self, cr, uid)
12 dc.gd_options(path=cr.dbname, expect={'DAV': ['1',]})
14 I will test the propnames at the document root
16 !python {model: ir.attachment}: |
17 from document_webdav import test_davclient as te
19 dc.get_creds(self, cr, uid)
20 dc.gd_propname(path=cr.dbname+'/Documents/')
22 I will test the ETags of the document root
24 !python {model: ir.attachment}: |
25 from document_webdav import test_davclient as te
27 dc.get_creds(self, cr, uid)
28 dc.gd_getetag(path=cr.dbname+'/Documents/')
31 I will now ls -l the document root.
33 !python {model: ir.attachment}: |
34 from document_webdav import test_davclient as te
36 dc.get_creds(self, cr, uid)
37 res = dc.gd_lsl(path=cr.dbname+'/Documents/')
39 print "%(type)s\t%(uid)s\t%(gid)s\t%(size)s\t%(mtime)s\t%(name)s" % lin