コード例 #1
0
 def test_boundMethod(self):
     """
     L{reflect.fullyQualifiedName} returns the name of a bound method inside
     its class and its module.
     """
     self._checkFullyQualifiedName(
         reflect.PropertyAccessor().reallyDel,
         "twisted.python.reflect.PropertyAccessor.reallyDel")
コード例 #2
0
 def test_propertyAccessor(self):
     """
     Test deprecation of L{reflect.PropertyAccessor}.
     """
     reflect.PropertyAccessor()
     self.lookForDeprecationWarning(
         self.test_propertyAccessor, "PropertyAccessor",
         "PropertyAccessor is old and untested. Please write your own "
         "version of this functionality if you need it")