"""Test the Links and Axels  model from OpenPLX tutorial 02."""
from agxOpenPLX import load_from_file, OptParams

class TestLinksandAxels: # pylint: disable=too-few-public-methods
    def test_links_and_axels(self, sim, tutorials):
        opt_params = OptParams()
        result = load_from_file(sim, str(tutorials / "t02-introduction-to-automatic-assembly" /
                                 "LinksAndAxles.openplx"), opt_params)
        assert len(result.errors()) == 0
