'Check if all key/values in filter match in tags.'

@staticmethod
def _tag_matches(tags, filter):

    for (tag_name, tag_value) in filter.items():
        serie_tag_value = tags.get(tag_name, _sentinel)
        if (serie_tag_value != tag_value):
            return False
    return True
