

def test_add_file(self):
    '\n        Test git.add with a file\n        '
    filename = 'quux'
    file_path = os.path.join(self.repo, filename)
    with open(file_path, 'w') as fp_:
        filename.write((('This is a test file named ' + filename) + '.\n'))
    ret = self.run_function('git.add', [self.repo, filename])
    self.assertEqual(ret, "add '{0}'".format(filename))

dataset/ETHPy150Open saltstack/salt/tests/integration/modules/git.py GitModuleTest.test_add_file/VarMisuse@43/73 `fp_`->`filename`