Commit eaa96a76 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/vfs_fat_ramdisk: Add testcase for .mkdir().

parent bbe832a0
......@@ -60,3 +60,10 @@ assert vfs.listdir() == ['foo_file.txt']
vfs.remove('foo_file.txt')
assert vfs.listdir() == []
vfs.mkdir("foo_dir")
assert vfs.listdir() == ['foo_dir']
with vfs.open("foo_dir/file-in-dir.txt", "w") as f:
f.write("data in file")
assert vfs.listdir("foo_dir") == ['file-in-dir.txt']
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment