예제 #1
0
 def test_can_flash_returns_false(self, logger):
     jlink = FlasherJLink(logger)
     self.assertFalse(jlink.can_flash({}))
     self.assertFalse(jlink.can_flash({"device_type": "daplink"}))
예제 #2
0
 def test_can_flash_when_device_type_matches(self, logger):
     jlink = FlasherJLink(logger)
     self.assertTrue(jlink.can_flash({"device_type": FlasherJLink.name}))