merkle-tree-stream/test/test_version.py
2019-07-08 13:04:00 +02:00

10 lines
275 B
Python

"""Version test module."""
def test_version_fails_gracefully(mocker):
target = 'pkg_resources.get_distribution'
with mocker.patch(target, side_effect=Exception()):
from merkle_tree_stream.__init__ import __version__
assert __version__ == 'unknown'