#NEWLINE# def test_exception_when_no_prepare( self ) : #NEWLINE# #INDENT# records = [ DummyRecord ( 5 , 'pikos' , 'apikos' ) ] #NEWLINE# recorder = CSVRecorder ( self . temp ) #NEWLINE# with self . assertRaises ( RecorderError ) : #NEWLINE# #INDENT# recorder . record ( records ) #NEWLINE# #UNINDENT# with self . assertRaises ( RecorderError ) : #NEWLINE# #INDENT# recorder . finalize ( )