#NEWLINE# def test_ambient_light_saving( self ) : #NEWLINE# #INDENT# ambientlight = collada . light . AmbientLight ( 'myambientlight' , ( 1 , 1 , 1 ) ) #NEWLINE# self . assertEqual ( ambientlight . id , 'myambientlight' ) #NEWLINE# self . assertTupleEqual ( ambientlight . color , ( 1 , 1 , 1 ) ) #NEWLINE# self . assertIsNotNone ( str ( ambientlight ) ) #NEWLINE# ambientlight . color = ( 0.1 , 0.2 , 0.3 ) #NEWLINE# ambientlight . id = 'yourambientlight' #NEWLINE# ambientlight . save ( ) #NEWLINE# loaded_ambientlight = collada . light . Light . load ( self . dummy , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , fromstring ( tostring ( ambientlight . xmlnode ) ) ) #NEWLINE# self . assertTrue ( isinstance ( loaded_ambientlight , collada . light . AmbientLight ) ) #NEWLINE# self . assertTupleEqual ( ambientlight . color , ( 0.1 , 0.2 , 0.3 ) ) #NEWLINE# self . assertEqual ( ambientlight . id , 'yourambientlight' )