#NEWLINE# def testLedgerWithTags( self ) : #NEWLINE# #INDENT# ledger = self . parser . parse_ledger ( fixture_path ( 'tags.dat' ) ) #NEWLINE# self . assertEqual ( 2 , len ( ledger . transactions ) ) #NEWLINE# tr1 = ledger . transactions [ 0 ] #NEWLINE# self . assertIsNotNone ( tr1 . tags [ 'balance' ] ) #NEWLINE# self . assertEqual ( date ( 2011 , 1 , 1 ) , tr1 . entries [ 1 ] . date ( tr1 ) ) #NEWLINE# tr2 = ledger . transactions [ 1 ] #NEWLINE# self . assertEqual ( 'Dracula' , tr2 . entries [ 0 ] . tags [ 'title' ] )