Hypothesis扩展,用于生成文件系统路径
项目描述
Hypothesis扩展,用于生成文件系统路径。任何内置Python函数open()
接受的都可以生成。
示例
from hypothesis import given
from hypothesis_fspaths import fspaths
@given(fspaths())
def test_open_file(path):
try:
open(path).close()
except IOError:
pass
项目详情
关闭
hypothesis-fspaths-0.1.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | d1124ddc2a37cb54cdaa573bb16a40841a37598c8fc7b83dd07babffc6b01368 |
|
MD5 | b0656674f89707353ce78bfb3448c1ff |
|
BLAKE2b-256 | be00208e4c5be58fdc92aa7bfac82e94c524150183fc8b0ec995d70d6e0db43c |