mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add correct function name
This commit is contained in:
parent
9bbecf7960
commit
fc24b24998
1 changed files with 2 additions and 2 deletions
4
tests/unit/cache/localfs_test.py
vendored
4
tests/unit/cache/localfs_test.py
vendored
|
@ -217,7 +217,7 @@ class LocalFSTest(TestCase):
|
|||
Tests that the list function returns an empty list if the bank directory
|
||||
doesn't exist.
|
||||
'''
|
||||
self.assertEqual(localfs.list(bank='', cachedir=''), [])
|
||||
self.assertEqual(localfs.list_(bank='', cachedir=''), [])
|
||||
|
||||
@patch('os.path.isdir', MagicMock(return_value=True))
|
||||
@patch('os.listdir', MagicMock(side_effect=OSError))
|
||||
|
@ -226,7 +226,7 @@ class LocalFSTest(TestCase):
|
|||
Tests that a SaltCacheError is raised when there is a problem accessing the
|
||||
cache bank directory.
|
||||
'''
|
||||
self.assertRaises(SaltCacheError, localfs.list, bank='', cachedir='')
|
||||
self.assertRaises(SaltCacheError, localfs.list_, bank='', cachedir='')
|
||||
|
||||
@destructiveTest
|
||||
def test_list_success(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue