def is_list_of_sets_equal(A, B):
    """test whether list of sets A is equal to list of sets B

    >>> A = [frozenset([1])]

    >>> B = [frozenset([1])]
    >>> is_list_of_sets_equal(A, B)
    True

    >>> B = [frozenset([2])]
    >>> is_list_of_sets_equal(A, B)
    False

    >>> B = [frozenset([1]),frozenset([2])]
    >>> is_list_of_sets_equal(A, B)
    False

    >>> B = []
    >>> is_list_of_sets_equal(A, B)
    False

    """
    if len(A) != len(B):
        return False
    As = frozenset(A)
    Bs = frozenset(B)
    try:
        Cs = As - Bs
    except:
        raise
    if len(Cs) != 0:
        return False
    return True
