docstr: ...Test that assign read only attribute defined in parent class
  raises an error
docstr_tok: ["...","Test","that","assign","read","only","attribute","defined","in","parent","class","raises","an","error"]
code: def test_inherited_readonly(self):
      """...Test that assign read only attribute defined in parent class
      raises an error
      """
  
      def f(x):
          self.a1.x0 = x
  
      # Test we cannot set a readonly attribute in script
      self.assertRaises(AttributeError, f, 3)
      # Test we cannot set a readonly attribute from class method
      self.assertRaises(AttributeError, self.a1.set_x0, 32)
      # Test we can force setting a readonly attribute in script
      self.a1._set("x0", 32)
      # Test we can force setting a readonly attribute from class method
      self.a1.force_set_x0(32)
  
imports: import sys
  import unittest
  from tick.base import Base
  from tick.base.build.base import A0
label_desc: Use image node_id 3 for calling the Test obj's underlying member method code with example usage: obj.test_inherited_readonly() without return types