Example #1
0
 def test_device_not_compatible(self):
     utils.filesystem.mount(self.NTFS_DEVICE, self.NTFS_MOUNTPOINT)
     test_manager = DriveMonitor(self.NTFS_MOUNTPOINT, self.NTFS_DEVICE)
     time.sleep(self.SHORT_SLEEP)
     self.assertTrue(test_manager.is_DeviceNotCompatible(),
                     msg="Current state: {}".format(test_manager.state))
     test_manager.stop()
Example #2
0
 def test_format_exfat(self):
     test_manager = DriveMonitor(self.NTFS_MOUNTPOINT, self.NTFS_DEVICE)
     time.sleep(self.SHORT_SLEEP)
     self.assertTrue(test_manager.is_InvalidDevice(),
                     msg="Current state: {}".format(test_manager.state))
     test_manager.format_drive("exfat")
     time.sleep(self.SHORT_SLEEP)
     if 'fuseblk' in test_manager.SUPPORTED_FILESYSTEMS:
         self.assertTrue(test_manager.is_DeviceOk(),
                         msg="Current state: {}".format(test_manager.state))
     else:
         self.assertTrue(test_manager.is_DeviceNotCompatible(),
                         msg="Current state: {}".format(test_manager.state))
     test_manager.stop()