Esempio n. 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
Esempio n. 2
0
 def setUp(self):
     self.channel = MockChannel()
     self.sbp = boot.SerialBootProtocol(self.channel)