def setUp(self):
#Create a mock vehicle object
vehicle = mock.create_autospec(Vehicle)
#Create a mock shotManager object
shotmgr = mock.create_autospec(ShotManager)
shotmgr.buttonManager = Mock()
#Run the shot constructor
self.shot = multipoint.MultipointShot(vehicle, shotmgr)
# 1 waypoint
self.shot.waypoints = [1]
# Play mode
self.shot.cableCamPlaying = True
评论列表
文章目录