def test_scratch_file_supports_file_obj_interface(active_scratch_dir, method_name):
"""
Assert that methods of :class:`~scratchdir.ScratchDir` that are expected to return file-like objects
do so and these objects implement, atleast, the :class:`~io.IOBase` interface.
"""
method = getattr(active_scratch_dir, method_name)
assert is_file_like_obj(method())
评论列表
文章目录