#NEWLINE# @ skipIf ( ( not msgpack . available ) , ( SKIP_MESSAGE % 'msgpack' ) ) #NEWLINE# def test_msgpack( self ) : #NEWLINE# #INDENT# data = OrderedDict ( [ ( 'foo' , 1 ) , ( 'bar' , 2 ) , ( 'baz' , True ) ] ) #NEWLINE# serialized = msgpack . serialize ( data ) #NEWLINE# deserialized = msgpack . deserialize ( serialized ) #NEWLINE# assert ( deserialized == data ) , deserialized