

def test_reset(self):
    '\n        Test git.reset\n\n        TODO: Test more than just a hard reset\n        '
    self.assertTrue(('ERROR' not in self.run_function('git.checkout', [self.repo], rev=self.branches[1])))
    self.run_function('git.reset', [self.repo], opts='--hard HEAD~1')
    head_rev = self.run_function('git.revision', [self.repo], rev='HEAD')
    self.assertTrue((len(head_rev) == 40))
    master_rev = self.run_function('git.revision', [self.repo], rev='master')
    self.assertTrue((len(master_rev) == 40))
    self.assertEqual(head_rev, master_rev)

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