"""Test the Signal Interaface model from OpenPLX tutorial 04."""
from agxOpenPLX import load_from_file, OptParams

class TestSignalInterface: # pylint: disable=too-few-public-methods
    def test_signal_interface(self, sim, models, tutorials):
        opt_params = OptParams()
        opt_params = opt_params.withBundlePath(str(models / "BoxTruck"))
        result = load_from_file(sim, str(tutorials / "t04-signal-interface" /
                                         "Scene.openplx"), opt_params)
        assert len(result.errors()) == 0
