mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
correct list comparision test for some python vers
This commit is contained in:
parent
ac239f50a9
commit
9b5562c7a2
1 changed files with 2 additions and 2 deletions
|
@ -327,7 +327,7 @@ class TestVaultUtils(LoaderModuleMockMixin, TestCase):
|
|||
with patch("salt.utils.files.fpopen", mock_open()) as mock_fpopen:
|
||||
function_response = vault.write_cache(self.cache_uses)
|
||||
assert mock_fpopen.call_count == 1
|
||||
self.assertEqual(
|
||||
self.assertListEqual(
|
||||
list(mock_fpopen.filehandles),
|
||||
[os.path.join("somepath", "salt_vault_token")],
|
||||
)
|
||||
|
@ -355,7 +355,7 @@ class TestVaultUtils(LoaderModuleMockMixin, TestCase):
|
|||
with patch("salt.utils.files.fpopen", mock_open()) as mock_fpopen:
|
||||
function_response = vault.write_cache(write_data)
|
||||
assert mock_fpopen.call_count == 1
|
||||
self.assertEqual(
|
||||
self.assertListEqual(
|
||||
list(mock_fpopen.filehandles),
|
||||
[os.path.join("somepath", "salt_vault_token")],
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue