hypothesis-fspaths

Hypothesis extension for generating filesystem paths


License
MIT
Install
pip install hypothesis-fspaths==0.1

Documentation

hypothesis-fspaths

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
https://travis-ci.org/lazka/hypothesis-fspaths.svg?branch=master https://ci.appveyor.com/api/projects/status/58ooix7enbn7qdt7/branch/master?svg=true