Example #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")
Example #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")