#NEWLINE# def test_branch_created_from_base( self ) : #NEWLINE# #INDENT# '\n        The new branch is created from the given branch.\n        ' #NEWLINE# master = self . repo . active_branch #NEWLINE# branch = self . repo . create_head ( 'release/flocker-0.3.0rc1' ) #NEWLINE# branch . checkout ( ) #NEWLINE# FilePath ( self . repo . working_dir ) . child ( 'NEW_FILE' ) . touch ( ) #NEWLINE# self . repo . index . add ( [ 'NEW_FILE' ] ) #NEWLINE# self . repo . index . commit ( 'Add NEW_FILE' ) #NEWLINE# master . checkout ( ) #NEWLINE# create_release_branch ( version = '0.3.0' , base_branch = branch ) #NEWLINE# self . assertIn ( ( 'NEW_FILE' , 0 ) , master . repo . index . entries )