예제 #1
0
 def setUp(self):
     self.channel = MockChannel()
     self.rkl = ramkernel.RAMKernelProtocol(self.channel)
     # Pretend we did initialize the chip already so we
     # can test commands.
     # Ensuring that these are set will be done in separate tests.
     self.rkl._flash_init = True
     self.rkl._kernel_init = True
예제 #2
0
파일: test_boot.py 프로젝트: bsdkllr/pyatk
 def setUp(self):
     self.channel = MockChannel()
     self.sbp = boot.SerialBootProtocol(self.channel)