Mathias Markl 7 years ago
parent
commit
290b49d375
  1. 4
      muk_attachment_lobject/tests/test_attachment.py

4
muk_attachment_lobject/tests/test_attachment.py

@ -53,4 +53,8 @@ class AttachmentTestCase(common.TransactionCase):
'name': "Test",
'datas': base64.b64encode(b"\xff data")})
self.assertTrue(attach.datas)
oid = attach.with_context({'oid': True}).datas
self.assertTrue(oid)
attach.write({'datas': base64.b64encode(b"\xff data")})
self.assertTrue(oid == attach.with_context({'oid': True}).datas)
attach.unlink()
Loading…
Cancel
Save