Exemple #1
0
def test_write_servo_raises_if_servo_location_invalid(mock_comm):
    wall = Wall(comm=mock_comm)
    with pytest.raises(KeyError):
        wall.write_servo('C', '99', 0.69)
Exemple #2
0
def test_write_servo_sets_servo_to_desired_position(mock_comm):
    wall = Wall(comm=mock_comm)
    wall.write_servo('C', '7', 0.314)
    assert wall.servos['C']['7'].position == 0.314