code: def test_properties_are_immutable(self):
      instance = LinearPathway(self.pA, self.pB)
      with pytest.raises(AttributeError):
          instance.attachments = None
      with pytest.raises(TypeError):
          instance.attachments[0] = None
      with pytest.raises(TypeError):
          instance.attachments[1] = None
  
imports: import pytest
  from sympy import Rational, Symbol, cos, pi, sin, sqrt
  from sympy.physics.mechanics import Force, LinearPathway, ObstacleSetPathway, PathwayBase, Point, ReferenceFrame, WrappingCylinder, WrappingGeometryBase, WrappingPathway, WrappingSphere, dynamicsymbols
  from sympy.simplify.simplify import simplify
label_desc: Use image node_id 6 for calling the TestLinearPathway obj's underlying member method code with example usage: obj.test_properties_are_immutable() without return types