def testSendClosedBus(self):
     disable_virtual_can_bus()
     frame = canframe.CanFrame.from_empty_bytes(self.FRAME_ID_SEND, self.FRAME_NUMBER_OF_DATABYTES)
     self.assertRaises(exceptions.CanException, self.interface.send_frame, frame)
 def testReceiveClosedBus(self):
     disable_virtual_can_bus()
     self.assertRaises(exceptions.CanException, self.interface.recv_next_frame)