Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9344114
test_meta.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
539 B
Subscribers
None
test_meta.py
View Options
import
json
from
swh.fuse.tests.common
import
get_data_from_web_archive
from
swh.fuse.tests.data.config
import
ALL_ENTRIES
def
test_access_meta_file
(
fuse_mntdir
):
for
swhid
in
ALL_ENTRIES
:
# On the fly mounting
file_path_archive
=
fuse_mntdir
/
"archive"
/
swhid
file_path_archive
.
exists
()
file_path_meta
=
fuse_mntdir
/
f
"meta/{swhid}.json"
assert
file_path_meta
.
exists
()
expected
=
json
.
dumps
(
get_data_from_web_archive
(
swhid
))
assert
file_path_meta
.
read_text
()
==
expected
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Fri, Jul 4, 2:07 PM (36 m, 53 s ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3283924
Attached To
rDFUSE FUSE virtual file system
Event Timeline
Log In to Comment