#NEWLINE# def test_jcamp1( ) : #NEWLINE# #INDENT# ' reading/writing of JCAMP file 1' #NEWLINE# dic = ng . bruker . read_jcamp ( os . path . join ( DATA_DIR , 'bruker_1d' , 'acqus' ) ) #NEWLINE# assert ( dic [ 'LFILTER' ] == 200 ) #NEWLINE# assert ( len ( ndic [ 'PRECHAN' ] ) == 16 ) #NEWLINE# tf = tempfile . mktemp ( dir = '.' ) #NEWLINE# ng . bruker . write_jcamp ( dic , tf ) #NEWLINE# ndic = ng . bruker . read_jcamp ( tf ) #NEWLINE# assert dic_similar ( dic , ndic ) #NEWLINE# os . remove ( tf )