'The new branch is created from the given branch.'

def test_branch_created_from_base(self):

    master = self.repo.active_branch
    branch = self.repo.create_head('release/flocker-0.3.0rc1')
    branch.checkout()
    FilePath(self.repo.working_dir).child('NEW_FILE').touch()
    self.repo.index.add(['NEW_FILE'])
    self.repo.index.commit('Add    NEW_FILE')
    master.checkout()
    create_release_branch(version='0.3.0', base_branch=branch)
    self.assertIn((u'NEW_FILE', 0), self.repo.index.entries)
