'Return true if this MediaType satisfies the given MediaType.'

def match(self, other):

    for key in self.params.keys():
        if ((key != u'q') and (other.params.get(key, None) != self.params.get(key, None))):
            return False
    if ((self.sub_type != u'*') and (other.sub_type != u'*') and (other.sub_type != self.sub_type)):
        return False
    if ((self.main_type != u'*') and (other.main_type != u'*') and (other.main_type != self.main_type)):
        return False
    return True
