示例#1
0
    def test_empty(self):
        ms = MotorSet(motors=[])

        ms.pose = []
        with self.assertRaises(AttributeError):
            ms.punch

        with self.assertRaises(AttributeError):
            ms.punch = 50
        ms.punch = []
        ms.does_not_exist = []
示例#2
0
 def test_properties(self):
     ms = MotorSet(motors=self.ctrl.motors)
     ms.zero_pose = -150
     ms.zero_pose
     ms.pose = 0
     ms.pose