#NEWLINE# def test_handleignore_local_jazzignore_expect_delete_gitignore( self ) : #NEWLINE# #INDENT# with testhelper . mkchdir ( 'aFolder' ) as folder : #NEWLINE# #INDENT# configuration . config = Builder ( ) . setworkdirectory ( folder ) . setgitreponame ( 'test.git' ) . build ( ) #NEWLINE# Initializer ( ) . createrepo ( ) #NEWLINE# subfolder = 'aSubFolder' #NEWLINE# os . mkdir ( subfolder ) #NEWLINE# jazzignore = ( ( jazzignore + os . sep ) + '.jazzignore' ) #NEWLINE# with open ( jazzignore , 'w' ) as testjazzignore : #NEWLINE# #INDENT# testjazzignore . write ( '# my ignores\n' ) #NEWLINE# testjazzignore . write ( 'core.ignore = {*.pyc}' ) #NEWLINE# #UNINDENT# Commiter . addandcommit ( testhelper . createchangeentry ( comment = 'Initial .jazzignore' ) ) #NEWLINE# gitignore = ( ( subfolder + os . sep ) + '.gitignore' ) #NEWLINE# self . assertTrue ( os . path . exists ( gitignore ) ) #NEWLINE# os . remove ( jazzignore ) #NEWLINE# Commiter . handleignore ( ) #NEWLINE# self . assertFalse ( os . path . exists ( gitignore ) )