bidict/tests/test_frozenbidict.txt

9 lines
203 B
Plaintext
Raw Normal View History

Test script for bidict.frozenbidict::
>>> from bidict import frozenbidict
>>> f = frozenbidict(one=1)
>>> hash(f) is not 'an error'
True
>>> {f: 1}
{frozenbidict({'one': 1}): 1}