Merge pull request #24181 from jtand/file_test

Fixed error where file was evaluated as a symlink in test_absent
This commit is contained in:
Nicole Thomas 2015-05-27 12:26:28 -06:00
commit 2303dec0e9

View file

@ -252,12 +252,12 @@ class FileTestCase(TestCase):
group=group), ret)
# 'absent' function tests: 1
@patch.object(os.path, 'islink', MagicMock(return_value=False))
def test_absent(self):
'''
Test to make sure that the named file or directory is absent.
'''
name = '/etc/grub.conf'
name = '/fake/file.conf'
ret = {'name': name,
'result': False,