Esempio n. 1
0
def test_make_hash_sha256_lambda(obj, expected):
    assert make_hash_sha256(obj) == expected
Esempio n. 2
0
def test_make_hash_sha256_partial(obj, expected):
    assert make_hash_sha256(obj) == expected
Esempio n. 3
0
def test_make_hash_sha256_dict(obj, expected):
    assert make_hash_sha256(obj) == expected
Esempio n. 4
0
def test_make_hash_sha256_dataframe(obj, expected):
    assert make_hash_sha256(obj) == expected
Esempio n. 5
0
def test_make_hash_sha256_tuple(obj, expected):
    assert make_hash_sha256(obj) == expected
Esempio n. 6
0
def test_make_hash_sha256_number(obj, expected):
    assert make_hash_sha256(obj) == expected
Esempio n. 7
0
def test_make_hash_sha256_string(obj, expected):
    assert make_hash_sha256(obj) == expected
 def make_key(self):
     """Set :attr:`key` to an sha256 hash for :attr:`parameters`"""
     self.key = make_hash_sha256(
         self._filter_parameters_to_hash(deepcopy(self.parameters)))
Esempio n. 9
0
def test_make_hash_sha256_function(obj, expected, kwargs):
    assert make_hash_sha256(obj, **kwargs) == expected