Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P790
(An Untitled Masterwork)
Active
Public
Actions
Authored by
haltode
on Sep 29 2020, 3:25 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
class
TestMount
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
mntdir
=
TemporaryDirectory
(
suffix
=
".swh-fuse-test"
)
def
fuse_daemon
():
with
self
.
mntdir
as
mntdir
:
CliRunner
()
.
invoke
(
cli
.
mount
,
mntdir
,
ROOT_SWHID
)
self
.
fuse
=
Process
(
target
=
fuse_daemon
)
self
.
fuse
.
start
()
# Artificial delay to make sure the FUSE is correctly mounted
time
.
sleep
(
0.1
)
def
tearDown
(
self
):
self
.
fuse
.
terminate
()
def
test_simple
(
self
):
self
.
assertEqual
(
listdir
(
self
.
mntdir
.
name
),
[
'archive'
,
'meta'
])
Event Timeline
haltode
created this paste.
Sep 29 2020, 3:25 PM
2020-09-29 15:25:18 (UTC+2)
haltode
created this object in space
S1 Public
.
Log In to Comment