'Check if *self.object* is really defined in the module given by
*self.modname*.'

def check_module(self):

    modname = self.get_attr(self.object, '__module__', None)
    if (modname and (modname != self.modname)):
        return False
    return True
