def test_put_value_timed(self):
    tm = rospy.ServiceProxy('/timed_motion', TimedMotion)
    tm((- 321), 654, 1500)
    with open('/dev/rtmotor0', 'r') as f:
        data = f.readline()
        self.assertEqual(data, '-321 654 1500\n', 'value does not written to rtmotor0')
def test_put_value_timed(self):
    tm = rospy.ServiceProxy('/timed_motion', TimedMotion)
    tm((- 321), 654, 1500)
    with open('/dev/rtmotor0', 'r') as f:
        data = f.readline()
        self.assertEqual(data, '-321 654 1500\n', 'value does not written to rtmotor0')