def METHOD_NAME(self):
    class AnytraitStaticNotifiers1(HasTraits):
        ok = Float
        def _anytrait_changed(self):
            if not hasattr(self, "anycalls"):
                self.anycalls = []
            self.anycalls.append(True)
    obj = AnytraitStaticNotifiers1(ok=2)
    obj.ok = 3
    # 3 calls (see test_anytrait_static_notifiers_4):
    # 1 to add trait 'anycalls',
    # 1 from the constructor,
    # 1 to set ok to 3
    self.assertEqual(len(obj.anycalls), 3)