def test_omnihash_python_types(): # string assert omnihash('test') == omnihash('test') # list assert omnihash(['this', 'is', 'a', 'list']) == omnihash(['this', 'is', 'a', 'list']) # set assert omnihash({'and', 'a', 'set'}) == omnihash({'set', 'set', 'and', 'a'}) # dict w/ set and tuple as well assert (omnihash({'a': {('fancy', 'nested'): {'dict'}}}) == omnihash({'a': {('fancy', 'nested'): {'dict'}}}))
def test_omnihash_python_types(): # string assert omnihash('test') == omnihash('test') # list assert omnihash(['this', 'is', 'a', 'list']) == omnihash(['this', 'is', 'a', 'list']) # set assert omnihash({'and', 'a', 'set'}) == omnihash({'set', 'set', 'and', 'a'}) # dict w/ set and tuple as well assert (omnihash({'a': { ('fancy', 'nested'): {'dict'} }}) == omnihash({'a': { ('fancy', 'nested'): {'dict'} }}))