docstr: Tests that subclasses don't destroy the __setattr__.
docstr_tok: ["Tests","that","subclasses","do","n't","destroy","the","__setattr__","."]
code: def test_subclass_setattr(self):
      """
      Tests that subclasses don't destroy the __setattr__.
      """
  
      class ClassWithFinal(with_metaclass(FinalMeta, object)):
          @final
          def f(self):
              return "ClassWithFinal: f"
  
      class SubClass(ClassWithFinal):
          def __init__(self):
              self.a = "a"
  
      SubClass()
      self.assertEqual(SubClass().a, "a")
      self.assertEqual(SubClass().f(), "ClassWithFinal: f")
  
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 5 for calling the FinalABCMetaTestCase obj's underlying member method code with example usage: obj.test_subclass_setattr() and returns: str