docstr: Tests overriding __setattr__ on an instance.
docstr_tok: ["Tests","overriding","__setattr__","on","an","instance","."]
code: def test_override___setattr___on_instance(self):
      """
      Tests overriding __setattr__ on an instance.
      """
  
      class SubClass(self.class_):
          def h(self):
              pass
  
      s = SubClass()
      with self.assertRaises(TypeError):
          s.__setattr__ = lambda a, b: None
  
imports: from abc import abstractmethod, ABCMeta
  from unittest import TestCase
  from six import with_metaclass
  from catalyst.utils.final import FinalMeta, final
  from catalyst.utils.metautils import compose_types
label_desc: Use image node_id 4 for calling the FinalABCMetaTestCase obj's underlying member method code with example usage: obj.test_override___setattr___on_instance() without return types