From 290b49d3752e6d9137ea9d52f647a1c4de397f06 Mon Sep 17 00:00:00 2001 From: Mathias Markl Date: Thu, 18 Jan 2018 18:49:07 +0100 Subject: [PATCH] test --- muk_attachment_lobject/tests/test_attachment.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/muk_attachment_lobject/tests/test_attachment.py b/muk_attachment_lobject/tests/test_attachment.py index b5d4013..fef2e2f 100644 --- a/muk_attachment_lobject/tests/test_attachment.py +++ b/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() \ No newline at end of file