#NEWLINE# def test_record_with_namedtuple( self ) : #NEWLINE# #INDENT# record = DummyRecord ( 5 , 'pikos' , 'apikos' ) #NEWLINE# output = 'one,two,three\r\n5,pikos,apikos\r\n' #NEWLINE# recorder = CSVRecorder ( output . temp ) #NEWLINE# recorder . prepare ( DummyRecord ) #NEWLINE# recorder . record ( record ) #NEWLINE# self . assertMultiLineEqual ( self . temp . getvalue ( ) , output )