

def test_rebase(self):
    '\n        Test git.rebase\n        '
    file_path = os.path.join(self.repo, self.files[1])
    with open(file_path, 'a') as fp_:
        fp_.write('Added a line\n')
    self.assertTrue(('ERROR' not in self.run_function('git.commit', [self.repo, ('Added a line to ' + self.files[1])], filename=self.files[1])))
    self.assertTrue(('ERROR' not in self.run_function('git.checkout', [self.repo], rev=self.branches[1])))
    self.assertEqual(self.run_function('git.rebase', [self.repo]), ('First, rewinding head to replay your work on top of it...\nApplying: Added a line to ' + self.files[0]))

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