diff options
author | 2022-11-28 09:46:23 +0800 | |
---|---|---|
committer | 2022-11-28 09:46:23 +0800 | |
commit | 315c5fa7e4a7e814b1994497941684b6cd1e9125 (patch) | |
tree | c6163b8d91a22544f3effa464033a92c296dcdab | |
parent | Add cleanup for LibMountTests (diff) |
Add assertions for test_unmount_flags
-rw-r--r-- | tests/test_libmount.py | 2 |
1 files changed, 2 insertions, 0 deletions
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.""" |