From 315c5fa7e4a7e814b1994497941684b6cd1e9125 Mon Sep 17 00:00:00 2001 From: ionite34 Date: Mon, 28 Nov 2022 09:46:23 +0800 Subject: Add assertions for test_unmount_flags --- tests/test_libmount.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/test_libmount.py') diff --git a/tests/test_libmount.py b/tests/test_libmount.py index 7d02d1a..d60c6da 100644 --- a/tests/test_libmount.py +++ b/tests/test_libmount.py @@ -78,7 +78,9 @@ class LibMountTests(TestCase): ] for flag in flags: with self.subTest(flag=flag), self.get_mount() as path: + self.assertTrue(path.is_mount()) libmount.unmount(path, flag) + self.assertFalse(path.is_mount()) def test_unmount_flags_expire(self): """Test unmount MNT_EXPIRE behavior.""" -- cgit v1.2.3