#NEWLINE# def test_ignore_option( self ) : #NEWLINE# #INDENT# os . chdir ( self . test_dir ) #NEWLINE# management . call_command ( 'makemessages' , locale = LOCALE , verbosity = 0 , ignore_patterns = [ 'ignore_dir/*' ] ) #NEWLINE# self . assert_ ( os . path . exists ( self . PO_FILE ) ) #NEWLINE# po_contents = open ( self . PO_FILE , 'r' ) . read ( ) #NEWLINE# self . assertMsgId ( 'This literal should be included.' , po_contents ) #NEWLINE# self . assertNotMsgId ( 'This should be ignored.' , po_contents )