

def test_branch(self):
    '\n        Test creating, renaming, and deleting a branch using git.branch\n        '
    renamed_branch = 'ihavebeenrenamed'
    self.assertTrue(self.run_function('git.branch', [self.repo, self.branches[1]]))
    self.assertTrue(self.run_function('git.branch', [self.repo, renamed_branch], opts=('-m ' + self.branches[1])))
    self.assertTrue(self.run_function('git.branch', [self.repo, renamed_branch], opts='-D'))

dataset/ETHPy150Open saltstack/salt/tests/integration/modules/git.py GitModuleTest.test_branch/original