

def test_checkout_no_rev(self):
    '\n        Test git.checkout without a rev, both with -b in opts and without\n        '
    new_branch = 'iamanothernewbranch'
    self.assertEqual(self.run_function('git.checkout', [self.repo], rev=None, opts=('-b ' + new_branch)), (("Switched to a new branch '" + new_branch) + "'"))
    self.assertTrue(("'rev' argument is required unless -b or -B in opts" in self.run_function('git.checkout', [self.repo])))

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