def image_name_match(image_name, filters):
    """
    Tests if an image name matches one of the filters.
    It uses fnmatch syntax.
    """
    import fnmatch
    for f in filters:
        if fnmatch.fnmatch(image_name, f):
            return True
    return False
