def test_idadf_tail_default(self, idadb, idadf, df):
    sortkey = idadf.columns[0]
    if idadf._get_numerical_columns():
        sortkey = idadf._get_numerical_columns()[0]
    ida_tail = idadf.tail()
    assert isinstance(ida_tail, pandas.core.frame.DataFrame)
    assert (len(ida_tail) == 5)
    df_tail = df.sort_values(sortkey).tail()
    assert (ida_tail[sortkey].tolist() == df_tail[sortkey].tolist())
def test_idadf_tail_default(self, idadb, idadf, df):
    sortkey = idadf.columns[0]
    if idadf._get_numerical_columns():
        sortkey = idadf._get_numerical_columns()[0]
    ida_tail = idadf.tail()
    assert isinstance(ida_tail, pandas.core.frame.DataFrame)
    assert (len(ida_tail) == 5)
    df_tail = df.sort_values(sortkey).tail()
    assert (ida_tail[sortkey].tolist() == df_tail[sortkey].tolist())