#NEWLINE# def test_symlink( self ) : #NEWLINE# #INDENT# if hasattr ( os , 'symlink' ) : #NEWLINE# #INDENT# if os . path . exists ( self . symlinked_dir ) : #NEWLINE# #INDENT# self . assert_ ( os . path . islink ( self . symlinked_dir ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# os . symlink ( os . path . join ( self . test_dir , 'templates' ) , self . symlinked_dir ) #NEWLINE# #UNINDENT# os . chdir ( po_contents . test_dir ) #NEWLINE# management . call_command ( 'makemessages' , locale = LOCALE , verbosity = 0 , symlinks = True ) #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 . assert_ ( ( 'templates_symlinked/test.html' in po_contents ) )