def test_display_cell_align_left_a(self) -> None: config_right = sf.DisplayConfig.from_default(cell_align_left=False, type_color=False) config_left = sf.DisplayConfig.from_default(cell_align_left=True, type_color=False) index = Index((x for x in 'abc')) self.assertEqual( index.display(config=config_left).to_rows(), ['<Index>', 'a', 'b', 'c', '<<U1>']) self.assertEqual( index.display(config=config_right).to_rows(), ['<Index>', ' a', ' b', ' c', ' <<U1>'])
def test_index_display(self, index: Index) -> None: d1 = index.display() self.assertTrue(len(d1) > 0) d2 = index.display_tall() self.assertTrue(len(d2) > 0) d3 = index.display_wide() self.assertTrue(len(d3) > 0)