def test_table_get_index_none(self): tbl = Table({"a": ["", "a", None, "b"], "b": [4, 3, 2, 1]}) assert tbl.get_index() is None
def test_table_get_index(self): tbl = Table({"a": ["", "a", None, "b"], "b": [4, 3, 2, 1]}, index="a") assert tbl.get_index() == "a"