コード例 #1
0
ファイル: test_mount.py プロジェクト: rbistolfi/pymount
 def tearDown(self):
     try:
         mount.umount2(self.target, mount.MNT_FORCE)
     except mount.MountError:
         pass
     os.unlink(os.path.join(self.source, self.test_file))
     os.rmdir(self.source)
     os.rmdir(self.target)
     os.rmdir(self.tmpdir)
コード例 #2
0
ファイル: test_mount.py プロジェクト: rbistolfi/pymount
 def test_umount2(self):
     self.test_mount()
     mount.umount2(self.target, mount.MNT_FORCE)
     self.assertFalse(os.path.exists(os.path.join(self.target, self.test_file)))