def test_idadf_tail_with_indexer(self, idadb, idadf_indexer, df):
    ida_tail = idadf_indexer.tail()
    sortby = (len(df.columns) - 1)
    df_head = df.sort_values(df.columns[sortby]).tail()
    assert isinstance(ida_tail, pandas.core.frame.DataFrame)
    assert (len(ida_tail) == 5)
    assert (ida_tail[idadf_indexer.columns[sortby]].tolist() == df_head[df.columns[sortby]].tolist())
def test_idadf_tail_with_indexer(self, idadb, idadf_indexer, df):
    ida_tail = idadf_indexer.tail()
    sortby = (len(df.columns) - 1)
    df_head = df.sort_values(df.columns[sortby]).tail()
    assert isinstance(ida_tail, pandas.core.frame.DataFrame)
    assert (len(ida_tail) == 5)
    assert (ida_tail[idadf_indexer.columns[sortby]].tolist() == df_head[df.columns[sortby]].tolist())