#NEWLINE# def test_date_iso( self ) : #NEWLINE# #INDENT# dummy_journal = self . mocker . mock ( ) #NEWLINE# dummy_issue = self . mocker . mock ( ) #NEWLINE# dummy_issue . publication_end_month #NEWLINE# self . mocker . result ( 0 ) #NEWLINE# dummy_issue . publication_year #NEWLINE# self . mocker . result ( 'foo' ) #NEWLINE# self . mocker . replay ( ) #NEWLINE# l10nissue = self . _makeOne ( dummy_journal , dummy_issue , 'en' ) #NEWLINE# date_iso = l10nissue . date_iso #NEWLINE# self . assertEqual ( date_iso , 'foo0000' ) #NEWLINE# self . assertIsInstance ( dummy_journal , unicode )