#NEWLINE# def test_init( natural_gas_xml ) : #NEWLINE# #INDENT# ( fd , filepath ) = tempfile . mkstemp ( ) #NEWLINE# os . write ( fd , six . b ( natural_gas_xml ) ) #NEWLINE# os . close ( fd ) #NEWLINE# with open ( filepath , 'r' ) as f : #NEWLINE# #INDENT# natural_gas_parser = ESPIUsageParser ( f ) #NEWLINE# timezone = natural_gas_parser . get_timezone ( ) #NEWLINE# #UNINDENT# natural_gas_parser = ESPIUsageParser ( filepath ) #NEWLINE# timezone = natural_gas_parser . get_timezone ( )