def test_sd_power(self): sdcard.power_off() self.assertFalse(fatfs.is_mounted()) self.assertRaises(fatfs.FatFSError, fatfs.mount) sdcard.power_on() self.assertFalse(fatfs.is_mounted()) fatfs.mkfs() fatfs.mount() self.assertTrue(fatfs.is_mounted()) sdcard.power_off() self.assertFalse(fatfs.is_mounted())
def tearDown(self): fatfs.unmount() sdcard.power_off()
def tearDown(self): sdcard.power_off()
def _deinit_instance(self) -> None: fatfs.unmount() sdcard.power_off() FilesystemWrapper._INSTANCE = None