def assert_sp_series_equal(left, right, check_dtype=True, exact_indices=True,<EOL>check_series_type=True, check_names=True,<EOL>check_kind=True,<EOL>check_fill_value=True,<EOL>consolidate_block_indices=False,<EOL>obj='<STR_LIT>'):
_check_isinstance(left, right, pd.SparseSeries)<EOL>if check_series_type:<EOL><INDENT>assert_class_equal(left, right, obj=obj)<EOL><DEDENT>assert_index_equal(left.index, right.index,<EOL>obj='<STR_LIT>'.format(obj=obj))<EOL>assert_sp_array_equal(left.values, right.values,<EOL>check_kind=check_kind,<EOL>check_fill_value=check_fill_value,<EOL>consolidate_block_indices=consolidate_block_indices)<EOL>if check_names:<EOL><INDENT>assert_attr_equal('<STR_LIT:name>', left, right)<EOL><DEDENT>if check_dtype:<EOL><INDENT>assert_attr_equal('<STR_LIT>', left, right)<EOL><DEDENT>assert_numpy_array_equal(np.asarray(left.values),<EOL>np.asarray(right.values))<EOL>
Check that the left and right SparseSeries are equal.

    Parameters
    ----------
    left : SparseSeries
    right : SparseSeries
    check_dtype : bool, default True
        Whether to check the Series dtype is identical.
    exact_indices : bool, default True
    check_series_type : bool, default True
        Whether to check the SparseSeries class is identical.
    check_names : bool, default True
        Whether to check the SparseSeries name attribute.
    check_kind : bool, default True
        Whether to just the kind of the sparse index for each column.
    check_fill_value : bool, default True
        Whether to check that left.fill_value matches right.fill_value
    consolidate_block_indices : bool, default False
        Whether to consolidate contiguous blocks for sparse arrays with
        a BlockIndex. Some operations, e.g. concat, will end up with
        block indices that could be consolidated. Setting this to true will
        create a new BlockIndex for that array, with consolidated
        block indices.
    obj : str, default 'SparseSeries'
        Specify the object name being compared, internally used to show
        the appropriate assertion message.