#NEWLINE# def store_environment( self ) : #NEWLINE# #INDENT# if ( not self . environment ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# environment = Environment ( id = uuid . uuid4 ( ) , name = 'Allure environment parameters' , parameters = [ ] ) #NEWLINE# for ( key , value ) in iteritems ( self . environment ) : #NEWLINE# #INDENT# environment . parameters . append ( EnvParameter ( name = key , key = key , value = value ) ) #NEWLINE# #UNINDENT# with self . _reportfile ( 'environment.xml' ) as f : #NEWLINE# #INDENT# self . _write_xml ( f , environment )