def __DocTestFinder_from_module(self, module, object):
 import inspect
 if (module is None):
  return True
 elif (inspect.isfunction(object) or inspect.isclass(object)):
  return (module.__name__ == object.__module__)
 elif (inspect.getmodule(object) is not None):
  return (module is inspect.getmodule(object))
 elif hasattr(object, '__module__'):
  return (module.__name__ == object.__module__)
 elif isinstance(object, property):
  return True
 else:
  raise ValueError('object must be a class or function')

def __DocTestFinder_from_module ( self , module , object ) : import inspect if ( module is None ) : return True elif ( inspect . isfunction ( object ) or inspect . isclass ( object ) ) : return ( module . __name__ == object . __module__ ) elif ( inspect . getmodule ( object ) is not None ) : return ( module is inspect . getmodule ( object ) ) elif hasattr ( object , '__module__' ) : return ( module . __name__ == object . __module__ ) elif isinstance ( object , property ) : return True else : raise ValueError ( 'object must be a class or function' )
return true if the given object is defined in the given module .