Beispiel #1
0
 def test_set_speed_string_position(self):
     leader = Leader(test_mode=True)
     self.assertEqual(0, leader.set_speed("position"))
Beispiel #2
0
 def test_set_speed_none_position(self):
     leader = Leader(test_mode=True)
     self.assertEqual(0, leader.set_speed(None))
Beispiel #3
0
 def test_set_speed_above_upper_bound(self):
     leader = Leader(test_mode=True)
     self.assertEqual(MAX_SPEED, leader.set_speed(1.1))
Beispiel #4
0
 def test_set_speed_zero_position(self):
     leader = Leader(test_mode=True)
     self.assertEqual(MAX_SPEED / 2, leader.set_speed(0.0))
Beispiel #5
0
 def test_set_speed_below_lower_bound(self):
     leader = Leader(test_mode=True)
     self.assertEqual(0, leader.set_speed(-1.1))