Hypothesis extension for
generating filesystem paths. Anything the built-in Python function open()
accepts can be generated.
from hypothesis import given
from hypothesis_fspaths import fspaths
@given(fspaths())
def test_open_file(path):
try:
open(path).close()
except IOError:
pass