mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
c6b655b6e9
These functions are: salt.utils.test_mode -> salt.utils.args.test_mode salt.utils.split_input -> salt.utils.args.split_input alt.utils.pem_finger -> salt.utils.crypt.pem_finger salt.utils.is_bin_file -> salt.utils.files.is_binary salt.utils.list_files -> salt.utils.files.list_files salt.utils.safe_walk -> salt.utils.files.safe_walk salt.utils.st_mode_to_octal -> salt.utils.files.st_mode_to_octal salt.utils.normalize_mode -> salt.utils.files.normalize_mode salt.utils.human_size_to_bytes -> salt.utils.files.human_size_to_bytes salt.utils.get_hash -> salt.utils.hashutils.get_hash salt.utils.is_list -> salt.utils.data.is_list salt.utils.is_iter -> salt.utils.data.is_iter salt.utils.isorted -> salt.utils.data.sorted_ignorecase salt.utils.is_true -> salt.utils.data.is_true
21 lines
425 B
Python
21 lines
425 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Import python libs
|
|
from __future__ import absolute_import
|
|
|
|
# Import Salt Testing libs
|
|
from tests.support.unit import TestCase
|
|
|
|
# Import Salt libs
|
|
import salt.utils.hashutils
|
|
|
|
|
|
class HashutilsTestCase(TestCase):
|
|
|
|
def test_get_hash_exception(self):
|
|
self.assertRaises(
|
|
ValueError,
|
|
salt.utils.hashutils.get_hash,
|
|
'/tmp/foo/',
|
|
form='INVALID')
|