'Tests overriding __setattr__ on an instance.'

def test_override___setattr___on_instance(self):

    class SubClass(self.class_, ):
        def h(self):
            pass
    s = SubClass()
    with self.assertRaises(TypeError):
        s.__setattr__ = (lambda a, b: None)
