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