summaryrefslogtreecommitdiff
path: root/test/test-standalone.py
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-01-09 15:30:22 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-01-09 15:30:22 +0000
commit6e4a93545a40a13af7308b97e435921a0eee7805 (patch)
tree5fd4ccff403fcc3e5dd62b2a770361346711f73a /test/test-standalone.py
parent93faf8793f271d91fbc413f1c9374328605bcda8 (diff)
When putting a ByteArray into a variant array, serialise it as an array of variants containing byte, not an array of variants containing string
Diffstat (limited to 'test/test-standalone.py')
-rwxr-xr-xtest/test-standalone.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-standalone.py b/test/test-standalone.py
index a7e2d1a..2fc92c1 100755
--- a/test/test-standalone.py
+++ b/test/test-standalone.py
@@ -175,6 +175,7 @@ class TestMessageMarshalling(unittest.TestCase):
aeq(Message.guess_signature(('a',)), '(s)')
aeq(Message.guess_signature('abc'), 's')
aeq(Message.guess_signature(types.Int32(123)), 'i')
+ aeq(Message.guess_signature(types.ByteArray('abc')), 'ay')
aeq(Message.guess_signature(('a',)), '(s)')
aeq(Message.guess_signature(['a']), 'as')
aeq(Message.guess_signature({'a':'b'}), 'a{ss}')
@@ -212,7 +213,7 @@ class TestMessageMarshalling(unittest.TestCase):
aeq(byte.__class__, types.Byte)
aeq(bytes.__class__, types.ByteArray)
aeq(bytes, 'bytes')
- aeq(bytes[0].__class__, types.Byte)
+ aeq(bytes[0].__class__, str)
aeq(int32.__class__, types.Int32)
aeq(uint32.__class__, types.UInt32)
aeq(string.__class__, types.String)