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