def METHOD_NAME(self):
    self.mock_virtual_bus.recv = Mock(side_effect=[self.testmsg, KeyboardInterrupt])
    sys.argv = self.baseargs
    can.logger.main()
    self.assertSuccessfullCleanup()
    self.mock_logger.assert_called_once()