import inspect


def _is_method_of(func_name, class_object):
	"""Check if a given class object has a method of a given name.

	:param func_name: the name of the method to be checked for
	:param class_object: the instance of the class
	:rtype: bool
	"""
	attr = getattr(class_object, func_name, None)
	if attr is None:
		return False
	else:
		return inspect.ismethod(attr)