Esempio n. 1
0
def test_sample():
    '''Ensure that all states of the sample robot run'''
    with get_plugin(Sample) as (plugin, control):
        _test_practice(plugin.control(), plugin.fake_time(), plugin.robot())

        robot = plugin.robot()
        assert robot.did_robot_init == True
        assert robot.did_robot_disabled == True
        assert robot.did_autonomous == True
        assert robot.did_operator == True
Esempio n. 2
0
def test_sample():
    """Ensure that all states of the sample robot run"""
    with get_plugin(Sample) as (plugin, control):
        _test_practice(plugin.get_control(), plugin.get_fake_time(), plugin.get_robot())

        robot = plugin.get_robot()
        assert robot.did_robot_init == True
        assert robot.did_robot_disabled == True
        assert robot.did_autonomous == True
        assert robot.did_operator == True
Esempio n. 3
0
def test_iterative():
    '''Ensure that all states of the iterative robot run'''
    with get_plugin(Iterative) as (plugin, control):
        _test_practice(plugin.control(), plugin.fake_time(), plugin.robot())

        robot = plugin.robot()
        assert robot.did_robot_init == True
        assert robot.did_disabled_init == True
        assert robot.did_disabled_periodic == True
        assert robot.did_auto_init == True
        assert robot.did_auto_periodic == True
        assert robot.did_teleop_init == True
        assert robot.did_teleop_periodic == True
Esempio n. 4
0
def test_iterative():
    """Ensure that all states of the iterative robot run"""
    with get_plugin(Iterative) as (plugin, control):
        _test_practice(plugin.get_control(), plugin.get_fake_time(), plugin.get_robot())

        robot = plugin.get_robot()
        assert robot.did_robot_init == True
        assert robot.did_disabled_init == True
        assert robot.did_disabled_periodic == True
        assert robot.did_auto_init == True
        assert robot.did_auto_periodic == True
        assert robot.did_teleop_init == True
        assert robot.did_teleop_periodic == True