def test_can_flash_returns_false(self, logger): jlink = FlasherJLink(logger) self.assertFalse(jlink.can_flash({})) self.assertFalse(jlink.can_flash({"device_type": "daplink"}))
def test_can_flash_when_device_type_matches(self, logger): jlink = FlasherJLink(logger) self.assertTrue(jlink.can_flash({"device_type": FlasherJLink.name}))