Skip to content

Commit 2c84f7d

Browse files
Add test for MountPoint.__repr__()
1 parent e1eb9c1 commit 2c84f7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_modules.py

+2
Original file line numberDiff line numberDiff line change
@@ -482,12 +482,14 @@ def test_supervisor(host, supervisorctl_path, supervisorctl_conf):
482482
def test_mountpoint(host):
483483
root_mount = host.mount_point("/")
484484
assert root_mount.exists
485+
assert repr(root_mount)
485486
assert isinstance(root_mount.options, list)
486487
assert "rw" in root_mount.options
487488
assert root_mount.filesystem
488489

489490
fake_mount = host.mount_point("/fake/mount")
490491
assert not fake_mount.exists
492+
assert repr(fake_mount)
491493

492494
mountpoints = host.mount_point.get_mountpoints()
493495
assert mountpoints

0 commit comments

Comments
 (0)