|
@ -45,6 +45,9 @@ class AttachmentTestCase(common.HttpCase): |
|
|
'datas': base64.b64encode(b"\xff data")}) |
|
|
'datas': base64.b64encode(b"\xff data")}) |
|
|
self.assertTrue(attach.datas) |
|
|
self.assertTrue(attach.datas) |
|
|
self.assertTrue(attach.with_context({'bin_size': True}).datas) |
|
|
self.assertTrue(attach.with_context({'bin_size': True}).datas) |
|
|
|
|
|
self.assertTrue(attach.with_context({'human_size': True}).datas) |
|
|
|
|
|
self.assertTrue(attach.with_context({'base64': True}).datas) |
|
|
|
|
|
self.assertTrue(attach.with_context({'stream': True}).datas) |
|
|
oid = attach.with_context({'oid': True}).store_lobject |
|
|
oid = attach.with_context({'oid': True}).store_lobject |
|
|
self.assertTrue(oid) |
|
|
self.assertTrue(oid) |
|
|
attach.write({'datas': base64.b64encode(b"\xff data")}) |
|
|
attach.write({'datas': base64.b64encode(b"\xff data")}) |
|
|