'Compares this version to that of a versioned method.'

def matches_versioned_method(self, method):

    if (type(method) != versioned_method.VersionedMethod):
        msg = _('An    API    version    request    must    be    compared    to    a    VersionedMethod    object.')
        raise exception.InvalidParameterValue(err=msg)
    return self.matches(method.start_version, method.end_version, method.experimental)
