diff --git a/tests/test_blob.py b/tests/test_blob.py index 857c369..3842b6f 100644 --- a/tests/test_blob.py +++ b/tests/test_blob.py @@ -10,12 +10,12 @@ from . import constants from . import model def test_blob_data_constructor(pEp, model): - bdata = bytes('this is test data', 'utf-8') + bdata = b'this is binary \x00\x01\xbb\xa7\xa4\xab test data' b = pEp.Blob(bdata) assert(b.data == bdata) def test_blob_data_property(pEp, model): + bdata = b'this is binary \x00\x01\xbb\xa7\xa4\xab test data' b = pEp.Blob(b'dummy') - bdata = bytes('this is test data', 'utf-8') b.data = bdata assert(b.data == bdata)