summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/units/parsing/vault/test_vault_editor.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/test/units/parsing/vault/test_vault_editor.py b/test/units/parsing/vault/test_vault_editor.py
index a3bbcf8b17..4e734e065e 100644
--- a/test/units/parsing/vault/test_vault_editor.py
+++ b/test/units/parsing/vault/test_vault_editor.py
@@ -498,21 +498,9 @@ class TestVaultEditor(unittest.TestCase):
res = ve._real_path(filename)
self.assertEqual(res, '-')
- def test_real_path_dev_null(self):
+ def test_real_path_not_dash(self):
filename = '/dev/null'
ve = self._vault_editor()
res = ve._real_path(filename)
- self.assertEqual(res, '/dev/null')
-
- def test_real_path_symlink(self):
- self._test_dir = os.path.realpath(self._create_test_dir())
- file_path = self._create_file(self._test_dir, 'test_file', content=b'this is a test file')
- file_link_path = os.path.join(self._test_dir, 'a_link_to_test_file')
-
- os.symlink(file_path, file_link_path)
-
- ve = self._vault_editor()
-
- res = ve._real_path(file_link_path)
- self.assertEqual(res, file_path)
+ self.assertNotEqual(res, '-')