Hypothesis extension for generating filesystem paths
Project description
Hypothesis extension for generating filesystem paths. Anything the built-in Python function open() accepts can be generated.
Example
from hypothesis import given
from hypothesis_fspaths import fspaths
@given(fspaths())
def test_open_file(path):
try:
open(path).close()
except IOError:
pass
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hypothesis-fspaths-0.1.tar.gz
(4.2 kB
view hashes)