aboutsummaryrefslogtreecommitdiffstats
path: root/selftest/util_test/util_test.py
blob: e07b2d4e988ce6f7334b687c681610b191d12f1e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python3
import _prep

from osmo_gsm_tester.core.util import hash_obj

print('- expect the same hashes on every test run')
print(hash_obj('abc'))
print(hash_obj(1))
print(hash_obj([1, 2, 3]))
print(hash_obj({ 'k': [ {'a': 1, 'b': 2}, {'a': 3, 'b': 4}, ],
                 'i': [ {'c': 1, 'd': 2}, {'c': 3, 'd': 4}, ] }))