def METHOD_NAME(self, cls):
    obj = cls()
    obj.x = 5
    self.assertEqual(obj.__dict__, {'x': 5})
    with self.assertRaises(AttributeError):
        obj.__dict__ = {}
    with self.assertRaises(AttributeError):
        del obj.__dict__